One Postgres, a database per user, or both?
Choosing between one Postgres database, a Turso database per user, or both comes down to where data must live, who owns it, and how many features need to read across users.
Topics Architecture & design
End-to-end design of a system and its tradeoffs.
Search within System design, or combine it with other topics →
Choosing between one Postgres database, a Turso database per user, or both comes down to where data must live, who owns it, and how many features need to read across users.
Grab built an offline ads simulator that sequentially replays historical ad opportunities, applies candidate bidding, ranking and pacing logic, and probabilistically generates user responses from calibrated engagement models.
Booking.com’s search engine generates personalised hotel offers at request time instead of precomputing and indexing every possible room/date/price combination, which would be combinatorially infeasible.
Fly.io replaced HashiCorp Vault with Petsem, a home-grown secrets store that keeps a single write master in IAD but adds regional read replicas, trading strict consistency for availability.
OpenAI's Performance Factory is a cloud-based system of Codex agents that automates performance regression handling end to end, from alert to root cause, proposed fix, and verified recovery.
Datadog's Semantic Core is a knowledge graph that encodes equivalences between Datadog-native and OpenTelemetry metrics and span attributes, including deprecation chains across OTel convention versions.
Grab's merchant data service suffered a cascading failure when cache read timeouts fell back to the database, retries piled on, and availability collapsed.
Netflix's AI Discover tab on TV is driven by an "intelligence layer" agent harness.
Pinterest rebuilt Guardian, its real-time abuse detection platform, from a monolithic in-house system into a modular V2 that separates interactive analytics, continuous action evaluation and historical replay.
Cloudflare Spend Management, now in beta for pay-as-you-go customers, lets users set spending limits and alert thresholds on Workers and Durable Objects, automatically pausing billable invocations when a cap is hit.
Fly.io rebuilt 6PN, its private IPv6 network between Fly Machines, replacing a fleet-wide eBPF map of every migrated Machine's location (hundreds of thousands of entries kept in sync from Corrosion's gossip-replicated SQLite) with lazy, on-demand routes.
A reference architecture for enterprise AI agents on AWS organizes the system into five layers: an API gateway enforcing identity and policy, a five-phase agent runtime (Understand, Plan, Retrieve, Reason, Act and Observe), a knowledge and state tier, platform services for models and tools, and a cross-cutting trust and control framework.
Zillow replaced more than 10 per-campaign notification generator services with a configuration-driven Campaign Orchestrator that runs each of 100M+ daily email and push notifications as a short-lived AWS Step Functions Express Workflow, calling a shared library of stateless, schema-driven content modules (the Universal Content Generator) via HTTP Invoke.
Lyft built a Fake Payment Provider that implements the same provider interface as real processors (tokenize, authorize, increment, capture, charge, refund, void), so it can simulate partial failures, soft declines with retries, pending responses, timeouts and outages that processor test cards cannot.
Facebook's Your algorithm feature lets people edit, in natural language, the "Interested In" and "Not Interested In" lists that steer Feed and Reels ranking, backed by a single shared preference store.
Application teams in regulated enterprises can run self-service multi-Region failover behind a centralized ingress proxy fleet by owning a Route 53 Private Hosted Zone failover recordset while a central team owns peered Transit Gateways and VPC attachments.
Stripe's company-wide productivity agent Kai was built by one engineer in a week on LangChain's open-source Deep Agents harness.
Netflix replaced its synopsis fact-checker, which made five long-context (100k+ token) reasoning-model calls per synopsis, with a cascade.
Dropbox's file-acting agent grew out of two engineer prototypes, a server-side sandbox with installed software and a desktop chat UI with permission controls, merged into one system.
Nimbus is Figma's internal platform for running tens of thousands of sandboxes for AI-generated code across multiple cloud providers.
Before adding a sync engine or local data copy to speed up an application, check whether the real bottleneck is network-attached storage under managed Postgres.
Wise built a system that automatically reroutes EUR bank pay-ins to an alternative vendor, per bank, when the primary vendor fails or degrades.
Sauna, a proactive AI work assistant, gives every session, agent and connected inbox or calendar its own Turso database, creating about 90,000 databases a day and over 2 million in total.
Turso Cloud's paid plans no longer meter active databases, so a database costs only its storage while idle.