Lecture 10: Cloud Replicated DB, Aurora

  • Amazon Web Services
    • Custom Backend! - Not AWS Services
    • EC2 - general server/vm
    • S3 - store snapshots

  • persist to EBS
    • can load a new EC2
  • Availability Zones

  • Transaction (XACTION)
    • crash recovery
    • to log

  • RDS
    • replicated to another AZ

  • replicas with quorum
    • just log entries
    • only need 4 out of 6!
  • doing this instead of having to replicate the page table (like RDS) 35x performance!

  • goals of survival of failure of datacenter (AZ)
    • transient slow replicas (?)

  • quorum replication
    • n replicas
    • read and write quorum must overlap
    • W and R

  • databases vm/servers can crash
    • spin up new server log says redo these in the transactions
    • many many pages

  • copy of A, B, etc on different servers
    • replacement, pick 100 segment services
    • pick 1 replica from each
  • reads more common than writes
  • atomicly