TL;DR
- Choose Firebase if you’re building a mobile app, you want Google’s ecosystem (FCM push notifications, Crashlytics, GA4 integration), and you’re OK with a closed-source backend.
- Choose Pylon if you want self-host, no vendor lock-in, structured data, faceted search, or game shards (authored in Rust).
Big picture differences
If you want everything Google ships — push notifications, analytics, A/B testing, remote config, and the broader Google Cloud ecosystem — Firebase is a better fit. Pylon focuses on the backend; pair it with best-in-class single-purpose services.
Schema and data
Firestore is schemaless: any document can have any shape. Rules act as a soft schema by validating fields. This is great for rapid prototyping and a constant problem at scale (typos become orphan rows; refactoring fields is a manual sweep). Pylon’s schema is declarative TypeScript:Realtime model
Both ship realtime sync. The mental model differs:- Firestore listeners are per-document or per-query. You attach a listener; it fires when the matching documents change. Listeners are stateful — you manage their lifecycle.
- Pylon’s sync engine maintains a local replica of every entity you’ve subscribed to.
useQuery("Todo")returns the live array; the engine handles tombstones, optimistic mutations, and reconnection.
Search
Firestore Standard does not provide Pylon’s built-in faceted search shape. Firestore Enterprise adds text search, and many Firebase apps still use Algolia, Elastic, Typesense, or another search service when they need richer ranking and facets. Pylon ships FTS5 + roaring-bitmap facets in the binary. No second hosted search system is required for common faceted-search UI.Functions
Firebase Cloud Functions can cold start when no warm instance is available, though Firebase gives you controls such as min instances and concurrency to reduce that. Pylon functions run inside the already-running Pylon process, so there is no separate serverless function cold start.
Push notifications
Pylon doesn’t ship a push provider. FCM is excellent and free up to enormous volumes — keep using it on top of any backend, including Pylon. Pattern: register the device token via a Pylonaction, send via FCM from your function or a separate worker.
Pricing
Firebase pricing is itemized across separate meters: Firestore reads, writes, deletes, network egress, function invocations, function GB-seconds, storage, downloads, and related products. The Blaze plan auto-scales, which is useful but needs budget controls. Pylon Cloud is a platform plan plus machine compute and included quotas. Self-hosted, you pay your VPS bill.Migrating from Firebase
This is the hardest migration of any of the comparisons. Firestore’s schemaless documents typically denormalize aggressively (embed user info inside every post, etc.) — porting to Pylon’s relational model means:- Identify entities — what’s a top-level row vs. nested data?
- Normalize denormalized data — extract
User,Org, etc. into their own tables - Port security rules to policies — Firestore rules use a custom DSL; Pylon policies are simpler boolean expressions
- Re-shape clients —
firestore.collection("todos").onSnapshot(...)→useQuery("Todo")
User rows with emailVerified set, ask users to sign in once via magic code (which auto-binds their existing email).