Readit News logoReadit News
artman commented on Reverse engineering of Linear's sync engine   github.com/wzhudev/revers... · Posted by u/flashblaze
bhl · 3 months ago
Ecosystem for local-first and mobile is pretty immature, at least for Swift.

In comparison to the web where there's so many libraries e.g. Zero, LiveStore, LiveBlocks, I've yet to find a good GRDB (sqlite abstraction) integration / client.

Offline-first is definitely very strong, but now how do I get data into a remote database with conflict resolution support?

artman · 3 months ago
For inspiration, you might want to look at what we open sourced at Uber, https://github.com/uber-archive/jetstream-ios and https://github.com/uber-archive/jetstream/wiki/Protocol. While pretty immature and quite outdated nowadays, it did power one prototype in production and has a lot of the same concepts that we later used in Linear's sync engine.
artman commented on Reverse engineering of Linear's sync engine   github.com/wzhudev/revers... · Posted by u/flashblaze
artman · 3 months ago
I think the impressive part here isn't Linear's sync engine, but the fact that Evan Hu went through painstakingly reverse-engineer the engine by inspecting traffic and obfuscated code and was able to write documentation that is correct and more complete than what Linear publishes internally.
artman commented on Reverse engineering of Linear's sync engine   github.com/wzhudev/revers... · Posted by u/flashblaze
nologic98 · 3 months ago
Is this applicable for a consumer mobile app to use for a local-first architecture (either conceptually or literally)?
artman · 3 months ago
Most certainly, if the data that the mobile app consumes is bounded and the same data is accessed frequently. Uber for example could have benefited from a sync architecture immensely (I tried to implement one back in the day, but was too late to the party as hypergrowth blocked any attempts at switching architectures). Sync architectures are not only great from a user experience point of view, but also for developer productivity and velocity. Sync takes care of a slew of problems that makes feature development slow. I gave a talk on this at last year's Local First conf https://www.youtube.com/watch?v=VLgmjzERT08&t=4s.
artman commented on Linear.app   linear.app/homepage... · Posted by u/JaakkoP
inquirer39243 · 3 years ago
I couldn't find a mention of it - but is there any plans or ability to self-host? I'm personally not a fan of keeping everything in the cloud. Also are there export options in the event someone wanted to leave the platform?
artman · 3 years ago
We unfortunately don't currently have plans to provide self-hosting.

u/artman

KarmaCake day18January 24, 2014
About
iOS and Node engineering manager currently working at Groupon on Point Of Sale solutions and hands-free payment.
View Original