RETURN TO SYSTEM DESIGN VAULT (55)BLUEPRINT #36 // Easy
#36EasyLocation, Geospatial & Ride-Hailing
Develop a Weather Application
ASKED IN INTERVIEWS AT:AmazonChimeMetaHubSpot
EXECUTIVE SUMMARY & PROBLEM STATEMENT
Design a global weather service ingesting satellite and radar feeds, caching localized forecasts by geohash, and serving hundreds of millions of mobile users.
SCALE ESTIMATION & TRAFFIC ENVELOPE
DAILY ACTIVE USERS / TPS100 Million daily active users querying morning forecasts
READ / WRITE TRAFFIC RATIO99.9% read-heavy
5-YEAR STORAGE CAPACITYGlobal weather forecast grid cached in Redis & CDN
FUNCTIONAL REQUIREMENTS
- [1]Get current weather and 7-day forecast by user GPS location or city name
- [2]Severe weather alerts push notification
NON-FUNCTIONAL REQUIREMENTS
- •Low latency: < 50ms for forecast lookups
- •Massive CDN cache hit ratio (>95%)
- •Resilient to third-party weather API outages
CORE ARCHITECTURAL COMPONENTS
API Gateway with Geo-IP lookup
Global CDN Layer (TTL 15 min)
Redis Geohash Forecast Cache
Provider Ingestion Adapter
Severe Weather Alert Dispatcher
DATA SCHEMA & PERSISTENCE
ForecastCache: geohash_5, hourly_forecast_json, updated_at
DISTRIBUTED TRADE-OFFS & FAILURE MODES
- ⟡Rounding coordinates to 5-character Geohashes (~5km area) creates a shared cache key for thousands of users in the same neighborhood.