QuestionQ75

VerifiedDesigning scalable, available, and reliable cloud-native applications

Your company requires a database solution to store customer purchase history that meets these requirements:

  • Customers can query a purchase immediately after it is submitted.
  • Purchases can be sorted by a variety of fields.
  • Different record formats can be stored simultaneously.

Which storage option meets these requirements?

Explanation

Firestore in Native mode provides a strongly consistent, document-based database with real-time capabilities. Its flexible document model permits records with different field structures, and its indexes support ordering queries on fields in ascending or descending order. This allows newly submitted purchases to be queried immediately and sorted by the required fields.

Learn more

Community Discussion

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