Realtime Database
-데이터를 JSON 객체로 저장한다.
-공식적으로 데이터 중첩 사용은 자제하길 권고한다.
{
"chats": {
"one": {
"title": "Historical Tech Pioneers",
"messages": {
"m1": { "sender": "ghopper", "message": "Relay malfunction found. Cause: moth." },
"m2": { ... },
}
},
"two": { ... }
}
}
-데이터 평면화
{
"chats": {
"one": {
"title": "Historical Tech Pioneers",
"lastMessage": "ghopper: Replay malfunction found. Cause: moth.",
"timestamp": 1459361875666
},
"two": { ... },
"three": { ... }
},
"members": {
"one": {
"ghopper": true,
"alovelace": true,
"eclarke": true
},
"two": { ... },
"three": { ... }
},
"messages": {
"one": {
"m1": {
"name": "eclarke",
"message": "The relay seems to be malfunctioning.",
"timestamp": 1459361875337
},
"m2": { ... },
"m3": { ...}
},
"two": { ... },
"three": { ... }
}
}
Firestore
Realtime Database VS FireStore
Authentication
Firebase UI
Firebase SDK
Cloud Storage
Cloud Messaging