← Back to Blog
Architecture

Why We Replaced REST Polling with Protobuf on NATS JetStream

2026-10-15 • dewDrive Systems Team • 6 min read

The Problem with Polling Dashboards

Timer-driven REST polling wastes bandwidth when nothing changes and lags behind reality during incidents. In V2, every console screen subscribes to a NATS JetStream feed anchored by the snapshot read versionstamp.

Transactional Outbox in FoundationDB

Every state mutation and its Protobuf event commit in the same FoundationDB transaction. Outbox relays publish with deterministic Nats-Msg-Id headers so reconnects resume cleanly without gaps or duplicates.