Skip to content
HHackerTube.videoSurprise me

Scaling the Linear Sync Engine

Scaling the Linear Sync Engine on HackerTube: recommended by 2 Hacker News commenters across 2 separate months, 2023–2025.

Linear

talk · advanced · evergreen

Open on YouTube

A Linear engineer talks about scaling the company's sync engine, which keeps client data local and synchronized. It follows an earlier talk on the same system.

Why Hacker News recommends it

Recommended whenever local-first software, sync engines and CRDT alternatives come up, as a practical production account.

people recommended it
2
separate months
2
strong recommendations
0
discussed on HN
2023–2025
“This talk by Karri about Linear's "sync engine" is also a good watch”
— saqadri, Nov 2023, in “You don't need a CRDT to build a collaborative experience”

What HN commenters said

5 Hacker News comments link this video. Each one links back to its thread.

saqadriNov 2023Recommends

You may not need CRDT per-se, but building a collaborative experience is so difficult. I worked on collaborative systems for a bit, and also have read a bit about how Figma and Notion do it (this is a good read: [link] ) -- it's still super hard to get right. This talk by Karri about Linear's "sync engine" is also a good watch: ▶ this video .

in “You don't need a CRDT to build a collaborative experience” · View on HN

YousefEDOct 2023Recommends

This article has been quite the inspiration for many projects and progress on this front. I think we're seeing more and more developments around CRDTs and local-first frameworks / applications. I'm working on a few projects in this area: - [link] - Notion meets Notebook-style live programming for TypeScript / React - [link] - a rich text editor built on TipTap / Prosemirror that supports Yjs for local-first collaboration - [link] - a wrapper around Yjs for easier development In my experience so far, some things get more complicated when building a local-first application, and some things get a lot easier. What gets easier is that once you've modeled and implemented the data-layer (which does require you to rethink / unlearn a few principles), you don't need to worry about data-fetching, errors etc. as much as in a regular "API-based" app. Another interesting video I recommend on this topic is about Linear's "Sync Engine" which employs some of the local-first techniques as well: ▶ this video

in “Local-first software: You own your data, in spite of the cloud (2019)” · View on HN

probabletrainMar 2025Cites it

> Previous sync engines really want you to sync all data Linear had to do all sorts of shenanigans to be able to sync all data, for orgs with lots of it – there's a talk on that here: ▶ this video

in “Sync Engines Are the Future” · View on HN

dgroshevJun 2024Cites it

(this should probably be a post) CRDTs and local first are ideas that is perpetually in the hype cycle for the last decade or so, starting around the time Riak CRDTs became a thing and continuing all the way to today. Niki's post is a perfect illustration: CRDTs offer this "magical" experience that seems perfectly good until you try building a product with them. Then it becomes a nightmare of tradeoffs: - state-based or operation-based? do you trim state? how? - is it truly a CRDT (no conflicts possible), a structure with explicit conflict detection, or last-writer-wins/arbitrary choice in a trench coat that will always lose data? Case in point: Automerge uses pseudo-random conflict resolution, so Niki's solution will drop data if it's added without a direct causal link between the edits. To learn this, you have to go to "under the hood" section in Automerge docs and read about merge rules very attentively. It might be acceptable for a particular use case, but very few people would even read that far! - what is the worst case complexity? Case in point: yjs offers an interface that looks very much like JSON, but "arrays" are actually linked lists underneath, which makes it easy to accidentally become quadratic. - how do you surface conflicts and/or lost data to the user in the interface? What are the user expectations? - how do you add/remove replication nodes? What if they're offline at the time of removal? What if they come online after getting removed? - what's user experie

in “Local First, Forever” · View on HN

notamyJun 2023Cites it

Heads-up: This is a video ( ▶ this video ) embedded in a blog post; there doesn't seem to be an accompanying text-only version.

in “Scaling Linear's Sync Engine” · View on HN

Topics & tags

Web developmentDistributed systemsSoftware architecture & designlinearlocal-firstsync enginereal-time collaborationweb architecture