2

I have referred on the below sites for getting ideas on better Firebase schema design for a social network application.

But I fail to understand the recent developments and features available in Cloud FireStore of Firebase.

I have below requirements to be store.

  1. To Store Image Upload
  2. Comments for the Image
  3. Likes activity
  4. User following activity

I should be able to get them individually or all activities in a single call. How best can I organize the data model?

All the above is present in the below example. But I have question on getting all types of activities to show the master news feed in a single call sorted by time.

https://github.com/firebase/friendlypix/blob/master/design.md

PS: I will be using it with Flutter.

Other models discussed: Firestore - how to structure a feed and follow system

Purus
  • 5,701
  • 9
  • 50
  • 89

1 Answers1

0

This Udemy course gives a very good idea about how to design a fanned-out social media DB. However, it doesn't implement the "fanoutObject" concept mentioned in this blog. It is updating each duplicate collections independently. So not sure how consistency is guaranteed.