Planning a move from Firebase to RedDB
A practical checklist for evaluating data, authentication, realtime behavior, and recovery before a migration from Firebase.
On this page
Start with the workload, not the export
Firebase combines a database with authentication, authorization rules, client SDKs, realtime features and operational tooling. RedDB is a database engine; moving data alone does not replace the rest of that application stack. Inventory what the app uses before deciding whether a migration is worthwhile.
Record the document shapes and identifiers, query patterns, indexes, write rate, security rules, authentication dependencies, and listeners. Include behavior that is easy to overlook, such as offline clients and conflict resolution. Give every requirement an owner in the new architecture.
Try the examples locally
Start RedDB with its HTTP endpoint bound to your local machine:
red server --http-bind 127.0.0.1:5000 --path ./example.rdb --dev--dev disables authentication and is only for a trusted local environment. In a second terminal, define a helper to send a query. It requires curl and jq:
query() {
curl -fsS http://127.0.0.1:5000/query \
-H 'content-type: application/json' \
--data "$(jq -cn --arg query "$1" '{query: $query}')"
}The examples below were executed against RedDB 1.26.8. Use a fresh database for this walkthrough; reusing names from another example can change the results.
Try a representative document
query 'INSERT INTO product_docs DOCUMENT VALUES ({"source_id":"item-1","category":"ops","title":"Runbook"})'
query "SELECT source_id, title FROM product_docs WHERE category = 'ops'"The first operation writes a RedDB document; the second retrieves the selected fields. This illustrates the RedDB side of a model, not an automatic Firestore importer or a translation of Firebase security rules. Validate nested values, field types, IDs and each query your app actually uses before designing an import.
Plan the bridges
- Identity and authorization: decide how existing users authenticate and how every request is authorized. Reimplement and test the access rules explicitly; a database query is not a replacement for Firebase rules.
- Data movement: export a representative dataset, transform it in an application-owned process and verify counts, IDs and sampled records. Preserve a mapping for references and test how updates and deletes are handled during the transition.
- Realtime and offline behavior: inventory listeners and client expectations. Choose and test an application-level delivery and synchronization mechanism for each use case; this article does not assert Firestore change-feed compatibility.
- Operations: rehearse backup, restore, monitoring, access and rollback using the actual target deployment.
Do not promise a seamless cutover from the examples above. Try the flow against a disposable dataset, reconcile changes during any overlap, and keep a tested rollback plan. Read the RedDB document reference for the supported model and query surface.
Ready to build with RedDB?
Create an account and explore the Always Free database.
Create your account →