Why is checkout slow in Asia?
Answers can be wrong. Check what matters.Why is checkout about 800 ms slower for customers in Singapore?
A
Checkout calls the payment service, which calls the database. If the database is only in Frankfurt, every Singapore request pays for two long hops. I should check the trace before blaming the network.
Most of the extra time is probably distance, not code. The payment service runs in Singapore but reads from a database in Frankfurt, so each checkout makes two long round trips. Move reads to a nearby replica, then compare the 95th percentile before and after. A request trace will confirm how much of the 800 ms is the database.
Atlas