Edge runtimes are often lauded as a fix to all latency concerns. But sometimes, moving to the edge can increase latency. The problem: databases are still regional. If you move your application logic closer to the user via edge functions in multiple regions, this most likely increases the distance between your application and your database. Since the latter is often more chatty (more data sent back and forth between the application and database than the user and the application), this usually increases latency.
Drawbacks of Moving to the Edge
Drawbacks of Moving to the Edge
Drawbacks of Moving to the Edge
Edge runtimes are often lauded as a fix to all latency concerns. But sometimes, moving to the edge can increase latency. The problem: databases are still regional. If you move your application logic closer to the user via edge functions in multiple regions, this most likely increases the distance between your application and your database. Since the latter is often more chatty (more data sent back and forth between the application and database than the user and the application), this usually increases latency.