Cloud computing provides centralized computing resources via the internet while edge computing distributes some computing capabilities to local endpoints. As technologies like IoT and 5G emerge, edge computing is growing in importance to support applications requiring low latency. Edge computing complements cloud computing by handling data and tasks locally when immediate response times are needed, while still utilizing cloud infrastructure for storage and analytics. Both cloud and edge computing are key to enabling technologies like smart cities that generate large amounts of data from distributed devices.