This document presents a comprehensive overview of fog computing, its applications, advantages, and challenges in relation to sustainability. It defines fog computing as an extension of cloud computing that enhances performance and reduces latency while addressing the increasing energy consumption and environmental impact of data centers. The survey discusses several research efforts aimed at optimizing fog computing and highlights its significance in creating sustainable computing solutions for various sectors including smart cities and healthcare.