How to migrate/ set region for worker.

I have observed the following regarding the latency and query response times:

  • Database Location: AWS ap-south-1 (Mumbai)
  • Server Location: California (San Francisco)
  • User Access Sites: Hyderabad, US
Latencies:

  1. California to Mumbai: 150 ms to 250 ms
  2. Hyderabad to California: 200 ms to 300 ms
  3. Mumbai to California: 150 ms to 250 ms
  4. California to Hyderabad: 200 ms to 300 ms
Round-Trip Time (RTT):

  • RTT: 400 ms to 600 ms
Query Time:

  • Single Query Time: 700 ms to 1,100 ms
For instance, when retrieving a project and processing all related data—such as actions, sections, deliverables, document editor, and content_block, associations and action cashing logic.

Imaging Below use case.

  1. 10 RTTs with the Database: Maximum of 5.6 seconds
  2. Time for Processing (Payload creation, caching logic, etc.): Additional time
Total Time for 10 Queries:

  • RTT: 5.6 seconds
  • RTT for Client-Server Communication: 1.1 seconds
  • Processing Time: 1 second
Total Estimated Time: 7.7 seconds

Currently, the client is receiving responses within 7 to 8 seconds, which aligns with the calculated time.

How i can migrate my server to India Mumbai region, I need to restrict it to serve from Mumbai based data center only no matter from where request is coming.
Was this page helpful?