Interview Bootcamp
Ask Author
Back to course home

0% completed

Vote For New Content
If we have multiple replicas of the KGS and we are pulling the keys into memory ...

Clayton Corbin

Jun 8, 2022

If we have multiple replicas of the KGS and we are pulling the keys into memory from the DB containing the unused keys, how can we guarantee that two separate replicas don't try to move the same key to the used table + have the same key in their data structure?

1

0

Comments
Comments
Design Gurus
Design Gurus3 years ago

The replica suggested in the lesson is only a standby server, it is not serving traffic:

Whenever the primary server dies, the standby server can take over to generate and provide keys.