# How we moved our frontend off Firestore and built Lovable Realtime

DevFeed: [How we moved our frontend off Firestore and built Lovable Realtime](<https://devfeed.tech/articles/how-we-moved-our-frontend-off-firestore-and-built-lovable-realtime-126536.md>)

Original publisher: [Read original article](<https://lovable.dev/blog/lovable-realtime-service>)

Author: Ata Marzban

Published: 2026-11-10T11:30:00Z

Content type: article

Language: en

Sources: [Lovable](<https://devfeed.tech/sources/lovable.md>)

Topics: [Frontend & real-time](<https://devfeed.tech/topics/frontend-real-time.md>), [Firestore](<https://devfeed.tech/topics/firestore.md>), [Publish-subscribe pattern](<https://devfeed.tech/topics/pubsub.md>), [Integration testing](<https://devfeed.tech/topics/integration-testing.md>), [Full Stack Development](<https://devfeed.tech/topics/full-stack-development.md>), [build vs buy database solutions](<https://devfeed.tech/topics/build-vs-buy-database-solutions.md>)

Tags: [2026](<https://devfeed.tech/tags/2026.md>), [api](<https://devfeed.tech/tags/api.md>), [authorization](<https://devfeed.tech/tags/authorization.md>), [backend](<https://devfeed.tech/tags/backend.md>), [cdc](<https://devfeed.tech/tags/cdc.md>), [change-data-capture](<https://devfeed.tech/tags/change-data-capture.md>), [coding-agents](<https://devfeed.tech/tags/coding-agents.md>), [collaboration](<https://devfeed.tech/tags/collaboration.md>), [firestore](<https://devfeed.tech/tags/firestore.md>), [frontend](<https://devfeed.tech/tags/frontend.md>), [go](<https://devfeed.tech/tags/go.md>), [lovable](<https://devfeed.tech/tags/lovable.md>), [reactive](<https://devfeed.tech/tags/reactive.md>), [realtime](<https://devfeed.tech/tags/realtime.md>), [server](<https://devfeed.tech/tags/server.md>), [service](<https://devfeed.tech/tags/service.md>), [subscriptions](<https://devfeed.tech/tags/subscriptions.md>), [technical-blog](<https://devfeed.tech/tags/technical-blog.md>)

## AI overview

Lovable replaced browser-side Firestore listeners with a Go WebSocket service that computes each user's authorized data view and refreshes it when source data or permissions change. Firestore and Spanner updates flow through change data capture and NATS to affected subscriptions; server-side projections, hashing, and wire-level deltas reduce redundant payloads. This kept the existing databases while centralizing authorization and payload shaping in the Go backend. The team tested with shadow traffic, then rolled out by feature flag over about a week without user-facing incidents. For Sep. 5-Oct. 5, 2026, it reported a peak of 2.06 million concurrent subscriptions and 2.61 billion frames. Estimated application payload fell from a 40 TB full-snapshot baseline to 1.11 TB through deduplication, deltas, and reconnect state reuse; protocol and transport overhead were excluded. The article notes that permission dependencies require explicit field comparisons, supported by static analysis, and that long-lived WebSockets require connection-aware scaling and careful reconnect management.

## Source excerpt

How we replaced frontend Firestore listeners with a Go and NATS realtime service, with reactive authorization, server-shaped payloads, and 2.06 million live subscriptions.