Edge computing refers to executing functions at the edge of the network where data originates (or as close as possible). Serverless has a long cold start as it stops dormant functions. Edge has a lower latency and faster response time. Serverless is more cost-effective as almost no infrastructure cost is required.