Bíonn bunachair sonraí go minic ina bhottleneck de réir mar a fhásann córais. Bainníonn an scálú orthu teicnící ar nós replication (cóipeanna le haghaidh scálú léitheoireachta agus acmhainneachta), sharding (sonraí a roinnt ar fud freastalaí), caching, agus cineálacha cuí bhunachair sonraí a roghnú.
Replication — cóipeanna de na sonraí
REPLICATION → maintain COPIES of the database across servers:
→ PRIMARY (writes) + REPLICAS (copies):
- READ SCALING → direct reads to replicas (offload the primary) → handle more reads
- AVAILABILITY → a replica can take over if the primary fails (failover)
⚠️ replication lag → replicas may be slightly behind (eventual consistency for reads)
→ great for READ-heavy workloads and availability (most apps are read-heavy)
