System Design Classic
Search autocomplete suggests query completions as users type, requiring sub-100ms response times and frequency-based ranking. This GCP-native design uses a trie (prefix tree) stored in Memorystore (Redis) for fast prefix lookups, with Firestore tracking query frequencies. Perfect for search teams needing sub-100ms typeahead suggestions with frequency-based ranking and user-specific personalization.
Share this architecture with your network
The trie is partitioned by prefix ranges across Memorystore shards for distributed lookups. Each keystroke triggers a Cloud Function that retrieves suggestions from the appropriate shard. Query frequency updates flow through Pub/Sub and are aggregated by Cloud Functions into Firestore, then periodically synced back to the trie. A Cloud Run service handles full-text fallback for long queries.
Multi-Tenant SaaS Platform
Generic SaaS
Production-ready multi-tenant SaaS with tenant isolation, feature flags, usage metering, and self-serve onboarding.
Notification System
System Design Classic
Multi-channel notification system on Azure supporting push, email, SMS, and in-app notifications with Event Grid fan-out.
Dropbox File Storage System
Dropbox
Cloud file storage on Azure with chunked uploads to Blob Storage, delta sync, deduplication, and cross-device synchronization.
Chat Application System
System Design Classic
Real-time 1-on-1 and group chat on Azure with SignalR delivery guarantees, read receipts, typing indicators, and offline support.
News Feed System
System Design Classic
Personalized news feed on GCP with ranking, fan-out strategies via Pub/Sub, and Memorystore caching for social platforms.
Instagram Photo Sharing System
Instagram / Meta
Photo and video sharing platform on Azure with Blob Storage, CDN delivery, feed generation, stories, and Computer Vision image processing.
Search Autocomplete System
Remix this architecture in Canvas