---
title: "Making multiplayer more reliable"
description: "Figma added a write-ahead journal to its in-memory multiplayer service, which previously persisted files only via full checkpoints to S3 every 30–60 seconds."
url: "https://swe.quest/articles/making-multiplayer-more-reliable-3fb296ccf52c818b"
canonical: "https://www.figma.com/blog/making-multiplayer-more-reliable/"
source: "Figma"
published: "2022-10-20"
difficulty: "medium"
kind: "Case study"
reading_minutes: 10
tags: ["realtime","storage-systems","resilience","rust","cloud"]
---

# Making multiplayer more reliable

A post on [Figma](https://swe.quest/sources/figma.md), published 2022-10-20, 10 min read, Case study. Original: [https://www.figma.com/blog/making-multiplayer-more-reliable/](https://www.figma.com/blog/making-multiplayer-more-reliable/)

## Summary

Figma added a write-ahead journal to its in-memory multiplayer service, which previously persisted files only via full checkpoints to S3 every 30–60 seconds. Incremental changes are now batched and written to DynamoDB with sequence-number ranges. File ownership is enforced with a lock table and conditional writes to prevent split-brain corruption. Cross-region durability comes from guaranteeing a checkpoint within 30 minutes, since DynamoDB global tables would have cost about 6x more. After ~400K byte-identical replay validations during a dark launch, the journal handles over 2.2B changes per day, persists 95% within ~600ms, and removes checkpoint write spikes during deploys.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Real-time systems](https://swe.quest/tags/realtime.md) (Backend & APIs)
- [Storage systems](https://swe.quest/tags/storage-systems.md) (Infrastructure)
- [Resilience](https://swe.quest/tags/resilience.md) (Distributed systems)
- [Rust](https://swe.quest/tags/rust.md) (Languages)
- [Cloud platforms](https://swe.quest/tags/cloud.md) (Infrastructure)

## Prerequisites

- write-ahead logging ([easy posts on Observability](https://swe.quest/tags/observability.md?difficulty=easy))
- WebSocket-based real-time sync ([easy posts on Real-time systems](https://swe.quest/tags/realtime.md?difficulty=easy))
- DynamoDB conditional writes

## Keywords

Figma, DynamoDB, S3, write-ahead log, Rust, Postgres

## Related posts

- [How does Turso Cloud keep your data durable and safe?](https://swe.quest/articles/how-does-turso-cloud-keep-your-data-durable-and-safe-676876baa112a2af.md): Turso · 2025-05-20 · Medium · 4 min read · SQLite, Storage engines, Storage systems, Multi-tenancy, Cloud platforms
  Turso Cloud makes every SQLite database durable on S3 and S3 Express, treating local server disk purely as a cache.
- [How we scaled fast, reliable configuration distribution to thousands of workload containers](https://swe.quest/articles/how-we-scaled-fast-reliable-configuration-distribution-to-thousands-of-workload-e29683144db0f208.md): Datadog Engineering · 2025-06-17 · Medium · 13 min read · Configuration management, Distributed systems, Resilience, Multi-tenancy, Caching
  Datadog replaced on-demand per-tenant config loading (database reads plus Kafka cache-invalidation messages) with a context-publisher that snapshots all tenants' configuration into RocksDB blobs in cloud storage and streams individual updates over Kafka.
- [How Figma’s databases team lived to tell the scale](https://swe.quest/articles/how-figma-s-databases-team-lived-to-tell-the-scale-5117114294b188fe.md): Figma · 2024-03-14 · Medium · 19 min read · PostgreSQL, Distributed databases, Scaling, Query engines
  Figma horizontally sharded its RDS Postgres stack after vertical partitioning ran out of room.
- [What it Takes to Recover a 100 TB Postgres Database in AWS RDS](https://swe.quest/articles/what-it-takes-to-recover-a-100-tb-postgres-database-in-aws-rds-059ecd5d0236e5ed.md): Neon · 2025-02-04 · Easy · 7 min read · PostgreSQL, Replication, Cloud platforms, Resilience
  Recovering a 100 TB Postgres database on AWS RDS is slow or incomplete depending on the failure mode.
- [Introducing Husky, Datadog’s third-generation event store](https://swe.quest/articles/introducing-husky-datadog-s-third-generation-event-store-c33e11fe78ed46cc.md): Datadog Engineering · 2022-05-17 · Medium · 12 min read · Storage engines, Multi-tenancy, Distributed databases, System design, Analytics & OLAP
  Husky is Datadog's third-generation event store, an unbundled, schemaless, vectorized column store that separates compute from storage on top of S3 and a FoundationDB-backed metadata store.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
