HOW APPLE BUILT ICLOUD TO STORE BILLIONS OF DATABASES
Apple iCloud has an extreme multi-tenant architecture with billions of databases. The service stores at least one database for each user using technologies like Cassandra and FoundationDB. Apple's architecture focuses on asynchronous processing, stateless architecture, logical resource isolation, and layer abstractions to handle scalability and reliability needs. Apple ran one of the largest Cassandra deployments globally, but it still experienced scalability limitations. FoundationDB, a distributed key-value store, solved its scalability issues. The article also explains other problems Apple solved in its journey to supporting exabytes of data and millions of queries per second in iCloud.