Building a viral application to visualize train routes
Sep 10, 2022

Summary
This post details how Chronotrains, an interactive map application, leverages Vercel's Edge Network and Next.js API Routes with caching to handle viral traffic (over a million visits) and maintain seamless performance. It highlights the use of API Routes deployed as Vercel Functions for caching 'isochrone' results, PostgreSQL for storing pre-computed journey data, and Incremental Static Regeneration (ISR) to reduce database load and scale during high traffic. The application's architecture is presented as a case study for easy full-stack deployment and scaling on Vercel.