Skip to main content
PreparationZone Logo
PrepZone

System Design Building Blocks Map

The complete toolbox — DNS, LB, cache, DB, queue, CDN — and how they connect in every design.

Pass checkpoint below

StreamHub started as one server. Today it runs through GeoDNS, a CDN, API gateway, stateless services, Redis, Postgres with read replicas, Kafka, and S3. This article maps the toolbox and shows where each piece fits.

The complete toolbox

Cloud building blocks toolbox

NETWORKRoute 53DNS + GeoDNS
NETWORKCloudFrontCDN edge
NETWORKAWS ALBL7 balance
NETWORKAPI Gatewayauth + throttle
COMPUTEAmazon EKScontainer fleet
DATABASEElastiCacheRedis cache
DATABASERDS / Aurorarelational
DATABASEDynamoDBkey-value
INTEGRATIONMSK / SQSasync events
STORAGEAmazon S3object store
ANALYTICSOpenSearchfull-text
OPSCloudWatchmetrics · logs
SECURITYAWS WAFedge security
SECURITYCognitoidentity
COMPUTELambdaserverless
INTEGRATIONSNS / SESnotify
Every StreamHub product design combines subsets of these AWS components.
BlockPurposeStreamHub usage
DNS / GeoDNSResolve hostname; route to nearest regionstreamhub.com → US/EU/APAC clusters
CDNCache static and edge-cacheable content at PoPsVideo segments, thumbnails, JS bundles
Load balancerDistribute traffic across app serversALB across EKS pods
API gatewayAuth, rate limiting, routing, TLS terminationKong at edge; JWT validation
Cache (Redis)Sub-ms reads for hot dataStream metadata, sessions, rate limits
DatabaseDurable source of truthPostgres primary + read replicas
Message queueAsync decoupling and spike absorptionKafka events, RabbitMQ jobs
Object storeBlob storage for files and mediaS3 for VOD, clips, profile images
Search indexFull-text and autocomplete queriesElasticsearch for stream discovery
  • DNS / GeoDNS

    PurposeResolve hostname; route to nearest region
    StreamHub usagestreamhub.com → US/EU/APAC clusters
  • CDN

    PurposeCache static and edge-cacheable content at PoPs
    StreamHub usageVideo segments, thumbnails, JS bundles
  • Load balancer

    PurposeDistribute traffic across app servers
    StreamHub usageALB across EKS pods
  • API gateway

    PurposeAuth, rate limiting, routing, TLS termination
    StreamHub usageKong at edge; JWT validation
  • Cache (Redis)

    PurposeSub-ms reads for hot data
    StreamHub usageStream metadata, sessions, rate limits
  • Database

    PurposeDurable source of truth
    StreamHub usagePostgres primary + read replicas
  • Message queue

    PurposeAsync decoupling and spike absorption
    StreamHub usageKafka events, RabbitMQ jobs
  • Object store

    PurposeBlob storage for files and media
    StreamHub usageS3 for VOD, clips, profile images
  • Search index

    PurposeFull-text and autocomplete queries
    StreamHub usageElasticsearch for stream discovery

How blocks connect

StreamHub production architecture (AWS)

HTTPSstaticmissAPICLIENT
Mobile / WebStreamHub cli…
NETWORK
Route 53GeoDNS routing
NETWORK
CloudFrontCDN + WAF edge
NETWORK
AWS ALBTLS terminati…
NETWORK
API GatewayJWT · rate li…
STORAGE
Amazon S3media origin
COMPUTE
Amazon EKSAPI · auth · …
DATABASE
ElastiCachesessions · ho…
DATABASE
RDS Postgresprimary + rep…
INTEGRATION
Amazon MSKdomain events
ANALYTICS
OpenSearchstream discov…
OPS
CloudWatchmetrics · X-R…
End-to-end path from user to data — reference this when placing any new service.

Typical request path

  • User resolves streamhub.com via DNS → GeoDNS routes to nearest region.
  • Static assets served from CDN edge; cache miss fetches from origin once.
  • API requests hit load balancer → gateway (auth + rate limit) → app service.
  • App reads Redis cache → Postgres on miss → publishes events to Kafka on writes.
  • Media uploads go directly to S3 via presigned URLs; transcode workers pull from queue.

The rest of this guide is part of Pro

Free covers every fresher guide in full. Pro unlocks Senior, Staff and Architect guides across every track.

Still to come · 3 sections

  • Growth stages
  • Choosing blocks for a new feature
  • Cross-cutting concerns

Test yourself

Answer these before moving on — recall is what makes it stick.