Ask HN: How do you track API usage in multi region app?

In a multi-region API, EU and US region are usually 150ms apart.

Assuming a customer might send a request to US and EU region simultaneously, you maintain a counter `total_api_calls`. Incrementing it simultaneously from multiple regions at 1000 req/s.

How do you make sure the count is consistent in both regions?

This post does not have any comments yet