Components
The building blocks of every design, as the simulator models them.
Clients & Edge
- Users / Clients — Traffic generator: a population of users (or devices) of one client type.
- CDN — Edge cache close to users for static assets and media.
- DNS (Route 53) — Resolves names; geo/latency routing and health-checked failover.
- WAF / DDoS Shield — Filters malicious traffic and absorbs volumetric attacks (Cloudflare, AWS Shield).
- Browser / Client Cache — HTTP caching on the device (Cache-Control, ETags, service workers).
Traffic
- Load Balancer — L4/L7 load balancer distributing traffic across targets.
- API Gateway — Single entry point: auth, routing, rate limiting.
- Nginx — Reverse proxy / ingress with passive health checks.
- HAProxy — High-performance L4/L7 load balancer with active health checks.
- Envoy / Service Mesh — L7 proxy / sidecar (Istio, Linkerd) for service-to-service traffic.
- Kong Gateway — Plugin-based API gateway (auth, rate limiting, transformations).
- Rate Limiter — Token-bucket limiter that sheds excess load with HTTP 429.
Compute
Caching
Databases
- PostgreSQL — Relational OLTP database (primary + optional read replicas).
- MySQL — Relational OLTP database (primary + optional read replicas).
- MongoDB — Document database with replica sets and sharding.
- Cassandra — Wide-column, leaderless, write-optimised distributed DB.
- DynamoDB — Managed key-value store with provisioned throughput.
- PgBouncer — Lightweight Postgres connection pooler (transaction mode).
- ProxySQL — MySQL-aware proxy with connection pooling and query routing.
- Aurora PostgreSQL — Cloud-native Postgres with shared storage and up to 15 replicas.
- CockroachDB — Distributed SQL with Raft consensus; scales writes by adding nodes.
- ClickHouse (OLAP) — Columnar analytics database for fast aggregations over billions of rows.
- Neo4j (Graph) — Graph database for relationship-heavy queries.
- InfluxDB / TimescaleDB — Time-series database for metrics, IoT and events.
- Vector DB (Pinecone) — Approximate nearest-neighbour search over embeddings (Pinecone, pgvector, Milvus).
- Vitess (vtgate) — MySQL sharding middleware: routes queries to shards and pools connections.
Messaging
- Kafka — Distributed, partitioned, replicated commit log.
- RabbitMQ — Message broker with work queues and routing.
- SQS Queue — Fully managed, virtually unlimited message queue.
- Kinesis Data Streams — Managed sharded stream (≈1,000 records/s per shard).
- Apache Pulsar — Multi-tenant streaming + queuing with tiered storage.
- NATS JetStream — Lightweight, very fast messaging with persistence.
- Google Pub/Sub — Fully managed global messaging with auto-scaling.
Storage & Search
Ops & Observability
Codelays runs in your browser: turn on JavaScript to use it.