hicommonwealth / commonwealth

A platform for decentralized communities
https://commonwealth.im
GNU General Public License v3.0
67 stars 44 forks source link

Singapore Slump #4301

Open CowMuon opened 1 year ago

CowMuon commented 1 year ago

Description

As we know, app performance in Asia is significantly degraded, is the source of considerable complaint, and is simply unacceptable.

Engineering Requirements

Stated engineering assumption that is is the round trip database queries back to database North America that is main cause of performance degradation.

Wiki

https://github.com/hicommonwealth/commonwealth/wiki/geo-replication

Acceptance Criteria

NakulManchanda commented 1 year ago

@CowMuon Can we post how are we measuring and what are we measuring? And what are the current numbers - which we are improving upon?

To confirm database round trip query:

Ideally, same user need to measure both numbers

NakulManchanda commented 1 year ago

And to experiment with numbers:

NakulManchanda commented 1 year ago

Document proposed solution (inter-regional replication)

In addition to replication: We should also research on

eg. Backend server which communicate with DB - it should be deployed in US or it should be colocated with Singapore app etc? After we figure out replication,

CowMuon commented 1 year ago

Let's get going on this, very little runway here.

NakulManchanda commented 1 year ago

It narrows down to two things:

NakulManchanda commented 1 year ago

Two options to explore: