Back to course home
0% completed
Vote For New Content
How does databases sync in multiple servers ?
Kushidhar Reddy
Oct 16, 2024
Hi, how does all the databases are in sync when the load balancer (before api gateway) distributes the requests to multiple servers. There can be conflicts, how they are resolved.
0
0
Comments
Comments
Raunak Baliyan5 months ago
All servers are connected to a single database, which may have internal replicas or clusters. The DBMS manages synchronization and conflict resolution, ensuring data consistency.
Raunak Baliyan5 months ago
Conflicts arises when multi master or eventual consistency, comes in databases. Various ways to solved this: 1. Last-write-wins (LWW)
- Time-Stamp or version based conflict resolution
etc.
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