Latest news, technical deep dives, and tutorials from the TopGun team.
WebSockets don't survive in serverless. TopGun v0.11.0 introduces a stateless HTTP sync protocol that brings CRDT synchronization to Vercel Edge, AWS Lambda, and Cloudflare Workers.
Syncing a 100MB dataset shouldn't transfer 100MB. Here's how Merkle Trees let TopGun identify differences with a handful of hashes and transfer only the records that actually changed.
Live subscriptions used to work only on the local node. TopGun v0.10.0 introduces distributed subscriptions that push updates from any cluster node to your client in real-time.
Most search engines require a server. TopGun v0.8.0 brings BM25 relevance ranking to local-first apps with live subscriptions that update in real-time.
Physical clocks lie. Network time drifts. Yet distributed systems need ordering. Here's how Hybrid Logical Clocks solve causality tracking in TopGun.
Last-Write-Wins works for most cases, but fails spectacularly for booking systems and inventory. Here's how we designed Custom Conflict Resolvers for TopGun.
We tried using PostgreSQL logical replication for TopGun v2. Here is why it failed our realtime requirements and why we pivoted to an in-memory architecture.
From a Gun.js port to a high-performance in-memory data grid. The story of why we rewrote TopGun from scratch.
Conflict-free Replicated Data Types are the magic behind offline-first sync. Here's how TopGun uses them to merge changes without conflicts.