Scalability Analysis - Aggregates and entities
Growth Table: Aggregates and Entities in Microservices
| Users / Requests | What Changes? |
|---|---|
| 100 users | Single instance per microservice; aggregates handle entity consistency locally; simple database transactions. |
| 10,000 users | Multiple instances of microservices; aggregates partitioned by business domain; database connection pooling; caching introduced. |
| 1,000,000 users | Microservices scaled horizontally with load balancers; aggregates sharded by entity ID ranges; eventual consistency patterns; asynchronous messaging between services. |
| 100,000,000 users | Global distribution of microservices; aggregates split further; CQRS and event sourcing used; cross-region replication; advanced caching and CDN for read-heavy data. |