How to make redis Fast and scalable for Multiinstance Appwrite (Production grade)
- 0
- Self Hosted
- Flutter
- Databases
Currently i built my Appwrite architecture as follow. I have multiple servers in multiple regions in germany lets say server 1 and server 2. Each server has its own Appwrite, ProxySql and redis locally. and Each Instance access its own local Stuff. For database i have master DB sitting in Server1 and all the other servers will have the replica of it and i am managing it through ProxySql. Each region has its own proxySql because later i can add more DB replicas to that region and scale it furthor. So DB is Zentrelized by that with multiple replicas. Here i dont have any problem it workes perfectly.
And also Storage i have cloud storage and connected all the instaces to it.
Here now comes the problem, that i have with Redis currently. If each Instance has its own Redis and access it it workes but all the sessions changing something in one console will not affect in another and so on. So i need this setup that everything should be kind of local so that i not lose any speed due to high latency. I had before Redis centrelized but each request was very slow, because of latency in between i tried with my new architecture its super fast but i have just that one problem with redis.
I Searched and find out that i could use Redis in each instance and set up a bidirectional sync with RedisShake but again it might have problems with key collision or key mismatching.
So what option do i have to make it local and also also instances be in sync with the same keys? Anybody
Recommended threads
- script "build" was terminated by signal ...
Heyo, For some reason, my Next.js 16.0.10 version does not build properly. Here is the last logs: ``` 1063 packages installed [22.54s] $ next build ⚠ No build...
- Error with realtime channels
I'm performing a subscription to realtime channels, and after a few seconds I get an exception with this error: {\"type\":\"error\",\"data\":{\"code\":1008,\"me...
- Auth not working on expo react native
I'm trying to launch a development server with expo go and appwrite as a backend. On my windows pc, I've got a local docker instance of appwrite running as my b...