Open v0lkan opened 10 months ago
autoscaling will not work unless the state is share in a common backing store such as redis, or memory is not used and all state is read from a persistent volume. Distributed locking is nasty to get right. This will require some careful thought and likely some lua scripting. an alternate approach could be using a message queue; but it’ll be an overkill in our case, and it will be two components (queue and redis) to maintain isntead of one component (redis) anonter alternate approach would be leader election and letting only one of the load-balanced servers talk to redis as long as it is healthy.
Note that, for this to work we need to define how the system behaves in autoscaled mode.
Either leader election, or using a common backing store and using some lock etc.
There are already issues for that. so to start this demo we should at least have an “auto scaling” user story sorted out.