At Replit, a cloud-based development platform, they operate a cloud-based infrastructure that allows developers to collaborate and create within an integrated development environment. To tackle latency, they recognized the physical limits of their current setup and needed to distribute their infrastructure globally to bring servers closer to users. They implemented clusters, which are isolated from each other, allowing for separate management and reducing the impact of outages on users. However, their initial attempt at geographic distribution in Asia was unsuccessful due to issues with load balancing and latency. To address these challenges, they revised their architecture to use consistent hashing, distributing Repls uniformly among shards in a region, and implementing lazy transfers of Repls across clusters. This allowed them to improve the experience for developers in India and other regions, reducing latency by up to 300ms compared to running on US servers. The new infrastructure enables users to select their preferred continent, improving overall performance and reliability.