Today I tested one of the things I've been building into my offline-first messaging app and watching it work for the first time was genuinely satisfying. 😂
The idea is simple; A user shouldn't need an internet connection to send a message.
When a message is created, it is immediately saved to the local SQLite database.
The UI observes the database through useLiveQuery, so the message appears instantly. No waiting for the server. But saving the message locally is only half the story.
Every outgoing message also gets an entry in a local outbox. Think of the outbox as a delivery queue, It remembers what needs to be sent, even when there's no internet connection.
So to test this, I turned on Airplane Mode
And created a message. Using a handler I added in the front page of the app. Doesn’t really look chatty yet but ehh we’ll get to that part soon. :) anyways, They appeared immediately in the conversation with a pending status.
I inspected the local outbox and confirmed that the delivery jobs were persisted.
Everything was still there, despite having no connection.
Then I reconnected.
Without pressing anything, the sync coordinator detected the restored connection and started processing the queued messages and The messages transitioned from pending to sent. Oh and
Their server-assigned sequence numbers appeared too.
I repeated the entire process.
Offline -> create messages -> reconnect -> automatic delivery.
Worked fine. No manual intervention, No duplicate messages, Just the system doing what it was designed to do.
The architecture behind this currently involves:
React Native + Expo
SQLite as the local source of truth
Drizzle ORM + useLiveQuery
A persistent outbox
A Go backend
Cursor-based synchronization
There's still a lot to test: interrupted requests, retries, duplicate submissions, and concurrency.
So I'm not calling the synchronization system production-ready yet.
But today, I watched one of my offline first architecture core promises work in practice.
That's a good day of building. :)
#davexytech☕️
#golang #offline #architecture #programming #coding #tech #market #job
🚫 @SteveAustine_ Doing this to go Viral with Someone's passing and another person's Livelihood is a disgrace.
Dragging OBA FEMI into Bronson Reed's passing with a video out of context in a world where people don't look twice or ask questions is just absolutely messed up.
#wwe #wrestling
WWE is devastated to announce that Jermaine Haley, known to WWE fans as Bronson Reed, passed away earlier today.
Our thoughts and deepest condolences are with Jermaine’s family, friends and fans.
I was locked in learning backend development, and one day my mum got angry with me and said, “Every time you’re pressing that laptop, nothing has come out of it.”
I just kept quiet i didn’t even know how to react.
But honestly i don’t blame her
Everyone expects results
Calling Messi "Th!ef" is banter
saying LAMINE YAMAL has "STD" is banter
Reducing Pedri to "Yo-yo" is banter
But Questioning Yan Diomande's Age is offensive
I love this game 🤣🤣