The document describes Amplitude's Wave architecture for scalable analytics. It uses pre-aggregation of data into sets and a lambda architecture with batch, serving, and speed layers. In the speed layer, a custom in-memory database handles real-time updates of pre-aggregated sets. Daily batch jobs populate the serving layer in Amazon S3 with aggregated views optimized for queries. This architecture allows fast, interactive queries at low cost by minimizing data processed and leveraging cost-efficient storage.