SShortSingh.
Back to feed

How Google Docs-style real-time editing uses Operational Transformation to resolve conflicts

0
·7 views

A system design write-up explains how a real-time collaborative editor lets many users edit one document simultaneously without losing or corrupting changes. It estimates the scale involved, roughly 1 million concurrent users generating about 5 million operations per second, and notes that durable storage only sees a small fraction of that traffic. The architecture routes each document to a fixed shard, where a global sequencer imposes a single order on operations. An Operational Transformation engine then rewrites each incoming edit against the changes it missed, and a broadcast manager pushes the results to all connected clients. The author argues that separating in-memory sequencing from persistence is what keeps the system workable at this load.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Agents, Skills, Plugins or MCP: Matching Each AI Option to a Trade Team's Bottleneck

The article argues that choosing between AI agents, Skills, plugins and MCP should start by identifying the operational bottleneck rather than comparing feature lists. Unanswered inquiries point to a need for an agent that executes multi-step work, while inconsistent quoting practices suggest a Skill that packages a reusable method. Plugins are described as lightweight extensions inside existing applications, with limits tied to what the host exposes, and MCP is presented as a standard interface that lets models connect to tools consistently. The authors note these forms are complementary and that most teams end up combining several of them.

0
ProgrammingDEV Community ·

Founder-Led Market Validation: A Hands-On Guide for AI Startups

AI startups often build impressive prototypes yet struggle to win paying customers, because the core risk is usually a mismatch with real demand rather than weak technology. As AI tools become widely accessible, a working product alone no longer provides a competitive edge, so founders must show measurable value over existing software, general-purpose AI tools, or manual processes. The article recommends founder-led validation, in which founders personally research customer problems, test assumptions, and gather feedback from potential buyers instead of relying solely on outsourced research. It cites Stanford's 2026 AI Index and McKinsey's 2025 survey, which found widespread AI experimentation but limited enterprise-scale impact. The guide therefore urges founders to start from specific operational problems rather than a technology-first search for applications.

0
ProgrammingDEV Community ·

Docker Production Security: Rootless Mode, Secrets Handling and Image Scanning

A DEV Community article argues that containers are not virtual machines, since they share the host kernel and default to root execution, so a single misconfiguration can expose the whole host. It recommends layered defenses rather than relying on one control, including running as a non-root user, dropping unnecessary Linux capabilities, and scanning images before use. The author describes rootless Docker and userns-remap as ways to keep a compromised daemon or container from gaining root on the host. The piece also cautions against trusting public images and keeping secrets out of image layers, with concrete Dockerfile and command examples.

0
ProgrammingDEV Community ·

Developers Judge AI Models by One-Pass Real Tasks, Not Viral Benchmark Videos

A developer forum spent a day debating whether Opus 5.5's backend is comparable to DeepSeek after an entertainment video graded the model on a legacy code task. Many daily users pushed back, citing their own work where front-end and back-end code was completed in a single pass without rework. Critics noted the video's test could not be independently verified and did not reflect genuine backend development. The discussion argued that developers should test models on their own real tasks, measuring whether the output finishes in one pass and survives review. The same debate touched on concerns about relay sellers claiming their models are not downgraded, which the article suggests can be checked through long-context retention and repeatable personal benchmarks.