AIThis post was created with the assistance of artificial intelligence (AI).

TL;DR

Prime Big Deal Days · Oct 6–7Offer from Amazon

Get the latest gadgets delivered free — and shop member deals

  • Fast, free delivery on millions of items
  • Access to Prime Big Deal Days deals on October 6–7
  • Prime Video, Amazon Music and more included
Start your free Prime trial Free trial for eligible customers · Cancel anytime
As an affiliate, we earn on qualifying purchases.

Linear updates issues in a few milliseconds by using a local IndexedDB database and a custom sync engine that eliminates network latency. This approach makes the app feel instant and highly responsive. The article analyzes the technical foundations enabling this performance.

Linear can update issues in just a few milliseconds, a significant improvement over traditional CRUD applications that typically take around 300 milliseconds. This performance is achieved through a combination of in-browser database use and a custom sync engine, making the app feel instant and highly responsive.

Linear’s core innovation lies in placing the database within the browser using IndexedDB, allowing local mutations to be applied immediately without waiting for server confirmation. When a user updates an issue, the change is reflected instantly in the UI, with the sync engine batching and asynchronously pushing updates to the server in the background. This design eliminates network latency as a bottleneck, providing a seamless experience.

The sync engine, developed from the start by Linear’s co-founders, manages local state and server synchronization efficiently, enabling updates to be nearly instantaneous. The approach contrasts with standard web apps, which often rely on optimistic updates with libraries like SWR or Tanstack Query, but still depend on network responses for confirmation. Linear’s architecture prioritizes local-first data handling, making the UI feel native and fast.

Why It Matters

This technical approach fundamentally changes user experience expectations for web applications by demonstrating that instant responsiveness is achievable at scale. It also influences how developers might design future web apps, emphasizing local data storage and background synchronization to improve perceived performance and reduce loading states.

Amazon

IndexedDB browser database

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Background

Traditional web apps depend heavily on server round-trips for data updates, leading to noticeable delays. Linear’s approach, pioneered by their in-browser database and custom sync engine, addresses this bottleneck. They have built their stack with React, TypeScript, MobX, and PostgreSQL, focusing on client-side rendering and local-first data management. This strategy aligns with broader trends toward edge computing and real-time collaboration tools.

“Literally the first lines of code that I wrote was the sync engine, which is very uncommon to what you usually do when you’re a startup.”

— Tuomas, Linear co-founder

“The secret to building incredible web apps is by hiding all the network requests from the user.”

— Dennis Brotzky, author

Amazon

local-first sync engine software

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

What Remains Unclear

It is not yet clear how Linear’s architecture performs under extremely high concurrency or with large datasets. Details about the scalability limits of their local database and sync engine are still emerging.

Amazon

web app performance optimization tools

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

What’s Next

Next steps include further technical disclosures from Linear about their architecture, potential open-sourcing of parts of their sync engine, and observing how their approach influences broader web app development trends. Monitoring their performance in larger-scale deployments will also be key.

Amazon

real-time collaboration app development

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Key Questions

How does Linear achieve such fast issue updates?

Linear uses an in-browser IndexedDB database and a custom sync engine that applies local mutations immediately and synchronizes with the server asynchronously, eliminating network latency as a bottleneck.

Can this approach be used in other web apps?

Yes, but it requires significant custom development and architecture planning. Most apps can approximate this responsiveness with optimistic updates, but Linear’s fully local-first approach offers near-instant updates at scale.

What are the potential limitations of Linear’s architecture?

The scalability of their local database and sync engine under high concurrency or large datasets remains unconfirmed. Further technical details are needed to assess long-term performance.

Does this architecture impact initial load times?

Linear’s choice of client-side rendering with a simple stack allows for fast initial loads despite the complex local-first data management, but detailed performance metrics are not publicly available.

Source: Hacker News

EVERGREEN BESTSE

Evergreen bestsellers Picks

As an affiliate, we earn on qualifying purchases.

You May Also Like

Why CMB International Believes In SenseTime-W’s AI Potential And Keeps A ‘Buy’

CMB International reaffirms its Buy rating on SenseTime-W, citing strong performance in generative AI despite ongoing losses and sector volatility.

AI And Human Roles In The Future Of Document Processing

Analyzing how recent AI models are transforming document processing, displacing routine roles, and reshaping employment in global BPO sectors.

Why SpaceX 2040 Revenue FCST $4.3T in highly unlikely

Analysts question the feasibility of SpaceX reaching a $4.3 trillion revenue by 2040, citing size-related growth limits and market dynamics.

Japan’s Toto to invest $495m in chip materials, targeting 1-nm era

Japanese bathroom fixture maker Toto plans a $495 million investment to expand into semiconductor materials supporting 1-nanometer chip technology.