QuestionQ37

VerifiedDesigning scalable, available, and reliable cloud-native applications

You are a developer at a social media company. The company operates its social media website on-premises and uses MySQL as the backend for storing user profiles and user posts. Your company plans to migrate to Google Cloud, and your team will migrate user profile information to Firestore. You are responsible for designing the Firestore collections. What should you do?

Explanation

User posts are a potentially large, growing set of records that naturally belong to an individual user profile. Cloud Firestore subcollections associate a collection with a specific document and are the scalable structure for this type of hierarchical data; storing all posts as a nested list would cause the profile document to grow. Choose a data structure | Firestore

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!