You are viewing a free preview of this lesson.
Subscribe to unlock all 10 lessons in this course and every other course on LearningBro.
The Firebase Realtime Database is a cloud-hosted NoSQL database that stores data as a single JSON tree and synchronises it in real-time across all connected clients. It is one of the original Firebase products and remains relevant for specific use cases where extreme low-latency synchronisation is required.
The Firebase Realtime Database (RTDB) is a cloud-hosted JSON database that:
All data is stored as a single JSON tree. Every piece of data is a node in the tree, identified by a path:
{
"chat": {
"room-001": {
"messages": {
"msg-001": {
"sender": "alice",
"text": "Hello!",
"timestamp": 1705312200000
},
"msg-002": {
"sender": "bob",
"text": "Hi Alice!",
"timestamp": 1705312260000
}
},
"members": {
"alice": true,
"bob": true
}
}
}
}
Subscribe to continue reading
Get full access to this lesson and all 10 lessons in this course.