Firebase Realtime Database

gcpNoSQL databasegoogle-firebase-realtime-database

Single-region JSON datastore synchronised to connected clients in realtime.

Provider
gcp
Category
Data
Properties · 7 set by this component
propertytypevaluesrequiredkind defaultthis component
backupEnabledboolean—nofalse▸ false
backupRetentionDaysinteger—no—inherited
bucketing · advancedboolean—nofalseinherited
conflictResolutionenumnone | last-writer-wins | vector-clock | app-mergeno—▸ none
consistencyenumeventual | tunable | strongnoeventual▸ strong
encryptionAtRestboolean—nofalse▸ true
instancesinteger—no—inherited
managedboolean—nofalse▸ true
modelenumkey-value | wide-column | documentyes—▸ document
multipleInstances · component propertyboolean—nofalseinherited
partitionKeystring—no—inherited
quorumReads · advancedinteger—no—inherited
quorumWrites · advancedinteger—no—inherited
realtimeSync · component propertyboolean—notrueinherited
replicationenumsingle-region | multi-region-single-leader | multi-region-multi-leader | leaderlessnosingle-region▸ single-region
replicationFactorinteger—no—inherited
securityRulesMode · component propertyenumlocked | testnolockedinherited
tombstoneTtlDays · advancedinteger—no—inherited
Rules that apply · 2

Every rule whose selector covers this component's kind or its category. Whether a rule fires depends on the design: its properties, its edges and its groups.

multi-leader-store-without-conflict-policy

Multi-leader replication accepts concurrent writes in several regions. With no conflict resolution policy declared, divergent replicas are reconciled by accident rather than by design.

  • — all of these hold:
  • — the node's `replication` is "multi-region-multi-leader"
  • — any of these hold:
  • — the node's `conflictResolution` has no value
  • — the node's `conflictResolution` is "none"
read-heavy-path-without-cache

The design states a read-heavy workload and application servers read this datastore directly, yet the design has no cache anywhere. Every read pays a database round trip.

  • — all of these hold:
  • — the design requirement `traffic.readWriteRatio` is a number greater than 10
  • — the node has at least one synchronous incoming edge from an app-server
  • — this does not hold:
  • — the design contains a node of kind cache
Use it in a design
nodes:
  - { id: "firebase-realtime-database", component: "google-firebase-realtime-database" }
Other NoSQL database products · 46
ApsaraDB for HBasealibaba-apsaradb-hbasealibabacloudnosql-databaseApsaraDB for MongoDBalibaba-apsaradb-mongodbalibabacloudnosql-databaseLindormalibaba-lindormalibabacloudnosql-databaseTablestorealibaba-tablestorealibabacloudnosql-databaseAmazon CloudFront KeyValueStoreaws-cloudfront-keyvaluestoreawsnosql-databaseAmazon Cognito Syncaws-cognito-syncawsnosql-databaseAmazon DocumentDBaws-documentdbawsnosql-databaseAWS HealthLakeaws-healthlakeawsnosql-databaseAmazon Keyspaces (for Apache Cassandra)aws-keyspacesawsnosql-databaseAmazon DynamoDBdynamodbawsnosql-databaseAzure Cosmos DBazure-cosmos-dbazurenosql-databaseAzure DocumentDBazure-documentdbazurenosql-databaseAzure Health Data Servicesazure-health-data-servicesazurenosql-databaseAzure Managed Instance for Apache Cassandraazure-managed-cassandraazurenosql-databaseAzure Table Storageazure-table-storageazurenosql-databaseWorkers KVcloudflare-workers-kvcloudflarenosql-databaseApache Accumuloaccumulonosql-databaseAerospike Databaseaerospikenosql-databaseApache Cassandracassandranosql-databaseCouchbasecouchbasenosql-databaseApache CouchDBcouchdbnosql-databaseDataStax Enterprisedatastax-enterprisenosql-databaseFoundationDBfoundationdbnosql-databaseApache HBasehbasenosql-databaseMarkLogic Servermarklogicnosql-databaseMongoDBmongodbnosql-databaseMongoDB Atlasmongodb-atlasnosql-databaseGeneric NoSQL databasenosql-databasenosql-databaseNoSQL storenosql-storenosql-databaseOrientDBorientdbnosql-databaseRavenDBravendbnosql-databaseRethinkDBrethinkdbnosql-databaseRiak KVriaknosql-databaseScyllaDBscylladbnosql-databaseTiKVtikvnosql-databaseYDBydbnosql-databaseGoogle Cloud Bigtablebigtablegcpnosql-databaseGoogle Cloud Firestorefirestoregcpnosql-databaseCloud Healthcare APIgoogle-cloud-healthcare-apigcpnosql-databaseFirestore in Datastore modegoogle-firestore-datastore-modegcpnosql-database
and 6 more → NoSQL database page
Source
# yaml-language-server: $schema=../../schema/component.schema.json
# Firebase Realtime Database ("Firebase Realtime Database" overview, "Automated Backups" and
# "Firebase Privacy and Security"): a single-region JSON tree synchronised to clients in realtime.
# Data is encrypted at rest and in transit; automated daily backups are a Blaze-plan opt-in, and a
# new instance starts in locked mode where all reads and writes are denied.
schemaVersion: "1"
type: "component"
id: "google-firebase-realtime-database"
kind: "nosql-database"
provider: "gcp"
docs: "https://firebase.google.com/docs/database/backups"
defaults:
  model: "document"
  consistency: "strong"
  replication: "single-region"
  conflictResolution: "none"
  encryptionAtRest: true
  backupEnabled: false
  managed: true
properties:
  securityRulesMode:
    type: "enum"
    values: ["locked", "test"]
    default: "locked"
  realtimeSync:
    type: "boolean"
    default: true
  multipleInstances:
    type: "boolean"
    default: false

The same page as markdown, for an agent: /catalogue/components/google-firebase-realtime-database.md