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 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.
On this page
- Why do we need URL shortening?
Try it yourself
Designing URL Shortener (video)
- Requirements and Goals of the System
- Capacity Estimation and Constraints
- System Interface Definition
- Create Short URL API
- Redirect API
- Analytics API
- URL Management API
- Delete Short URL API
- Database Design
- Basic System Design and Algorithm
a. Encoding actual URL
b. Generating keys offline
- Data Partitioning and Replication
- Cache
- Load Balancer (LB)
- Purging or DB cleanup
- Telemetry
- Security and Permissions