Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Vinted Engineering 5 min read Case study easyNovice

Building a Global, Event-Driven Platform: Our Ongoing Journey, Part 2

Vinted runs its global marketplace with all writes in a single primary site and read-only projections replicated to other regions, rather than sharding primary data across regions in a multi-writer setup. The tradeoff accepts eventual consistency and replication lag in exchange for simpler, more predictable behavior, now serving around 300k requests per second. Teams build their own read-optimized projections from event streams, choosing shape and placement to cut cross-team dependencies and keep reads region-local. Roughly 50 teams have had to design for retries, compensations, idempotency and out-of-order events. Remaining work covers async tooling, event schema standards, projection redesigns and automated recovery.

Related posts

  • The Best Multi-Region Hosting Platforms in 2026

    Railway easyNovice

    "Multi-region" covers three distinct problems: CDN static asset distribution (level 1), stateless compute in multiple regions with a single-region database (level 2), and multi-region writes for stateful data (level 3). Most teams need level 2 but believe they need level 3, which costs roughly an order of magnitude more in money and engineering complexity and requires application changes like idempotency keys and conflict semantics. Ten platforms are ranked against this framework, from Railway, Fly.io and Cloudflare for level 2 to AWS DynamoDB Global Tables/Aurora Global, Google Spanner, Azure Cosmos DB and CockroachDB for level 3, each with pricing and trade-offs.

  • Patterns & Best Practices in Event-Driven Systems

    Kogan.com Dev Blog mediumAdept

    Five core event-driven architecture patterns, compared with their tradeoffs: event notification (thin signals that force consumers to call back), event-carried state transfer (full payloads that decouple consumers at the cost of size and schema discipline), event sourcing with CQRS, choreography and orchestration. Recommended practices include idempotent consumers backed by unique constraints on event IDs, durable replayable streams such as Kafka or EventBridge+SQS, explicit event versioning, schema registries with Avro/Protobuf compatibility modes, domain-driven event names, and correlation IDs for distributed tracing. Many systems mix choreography for simple flows with orchestration for multi-step workflows that need retries and compensation.

  • How Meta built the infrastructure for Threads

    Meta Engineering mediumAdept

    Threads reached 100 million sign-ups in five days on existing shared Meta infrastructure rather than purpose-built systems, illustrated through two components: ZippyDB and Async. ZippyDB, a multi-tenant key/value store, absorbs sudden demand by shifting unused allocations and slack between keyspaces via config changes. It scales out with a zero-downtime resharding protocol that remaps logical shards to new physical shards, which let the team proactively prepare Threads keyspaces for 100x growth just before launch. Async (XFaaS), a serverless deferred-execution platform, queued the far-higher-than-expected follow-graph imports and notification jobs and rate-limited their execution to protect downstream services such as the social graph database.

  • How we built multi-region support for Linear

    Linear mediumAdept

    Linear added an EU region by replicating its entire production deployment per region rather than sharding the database, keeping each region isolated and letting engineers keep writing against a single Postgres instance. The work came in three phases: Terraforming the previously hand-managed GCP infrastructure into region-parameterized modules, extracting a global authentication service that owns users, workspaces and their region mapping, and putting a Cloudflare Workers proxy in front of all traffic to route requests to the right region with a signed JWT. Shared records are created and deleted in the auth service first so uniqueness holds globally, updates propagate asynchronously through the sync engine, cross-service calls flow one way (auth to regions via Pub/Sub), and background jobs reconcile the two sides. Fallbacks and feature flags kept cut-overs late and mostly invisible to users.

  • Husky: Exactly-once ingestion and multi-tenancy at scale

    Datadog Engineering hardMaster

    Husky, Datadog's columnar event store, achieves exactly-once ingestion and cost-efficient multi-tenancy by routing events deterministically to Kafka partition groups (shards), so deduplication only has to happen within a shard. Time-bounded, immutable Shard Placements are allocated per tenant by a Sharding Allocator that uses FoundationDB transactions to give every Shard Router node the same answer. An Autosharder resizes each tenant's shard count from byte-throughput metrics. Consistent hashing with wraparound and shard exclusions keeps placement churn minimal, and a balancer counters hotspots. Limiting how many tenants each writer handles also cuts the number of blob-storage files and compaction work.

The quest for software engineering knowledge.

Look:
Layout: