Edge computing is used to process time-sensitive data, while cloud computing is used to process data that is not time-driven. Besides latency, edge computing is preferred over cloud computing in remote locations, where there is limited or no connectivity to a centralized location.