A developer behind MyChinaGuide, an app for foreigners traveling in China, has replaced geolocation-based routing with a backend racing technique to bypass the Great Firewall. The approach, detailed by founder Roccia, sends user requests to multiple servers simultaneously, using whichever responds first. This method improves reliability and speed for users inside China without relying on IP-based detection.
The Problem With Geolocation
Geolocation-based routing often fails in China due to inconsistent IP databases and VPN blocks. Many apps struggle to serve users behind the firewall, as geolocation can misidentify locations or trigger censorship. Roccia found that backend racing, where requests compete across servers, offers a more robust solution.
How Backend Racing Works
Instead of routing based on user location, the app sends each request to several backend servers in different regions. The first server to respond delivers the data, effectively bypassing slow or blocked routes. This technique, common in CDN and load-balancing systems, adapts dynamically to network conditions. Roccia notes that it reduces latency and avoids single points of failure, crucial for users in China where internet access is unpredictable.
Implications for Developers
For developers targeting Chinese users, backend racing provides a practical workaround to censorship without complex geolocation logic. Roccia's approach highlights a growing trend of using competitive server responses to maintain service reliability. While not a full VPN replacement, it offers a lightweight alternative for apps like travel guides that need consistent access.