This document discusses scalability and distributed systems. It introduces the scale cube model for scaling applications horizontally across multiple servers and vertically by splitting functionality. Session state can be stored on clients, servers, or in a database. Distributed systems require coarse-grained interfaces to minimize remote calls. Eventual consistency relaxes ACID properties and guarantees availability over consistency through asynchronous replication. The CAP theorem states it is impossible to guarantee consistency, availability, and partition tolerance simultaneously in distributed systems.