خواندن و نوشتن را در مقیاس درک کنید

Read this document to make informed decisions on architecting your applications for high performance and reliability. This document includes advanced Cloud Firestore topics. If you're just starting out with Cloud Firestore , see the quickstart guide instead. To make sure that your applications continue to perform well as your database size and traffic increase, it helps to understand the mechanics of reads and writes in the Firestore backend. You must also understand the interaction of your read and writes with the storage layer and the underlying constraints that may affect performance.

برای آشنایی با برخی از بهترین شیوه‌ها قبل از معماری اپلیکیشن خود، موارد زیر را بخوانید:

  • اجزای سطح بالای یک درخواست API را درک کنید.
  • تمام نوشتن‌ها به صورت تراکنش‌های خواندن-نوشتن مدیریت می‌شوند تا از ویژگی‌های ACID اطمینان حاصل شود. اگر یک نوشتن شامل چندین تقسیم باشد، ممکن است به یک فرآیند تایید دو مرحله‌ای نیاز داشته باشد.
  • خواندن‌ها ، به طور پیش‌فرض، «کاملاً سازگار» هستند و از یک رویکرد مبتنی بر مهر زمانی برای جلوگیری از قفل شدن استفاده می‌کنند.
  • برای حفظ عملکرد بالا، باید با توزیع عملیات در سراسر محدوده کلید و کوچک نگه داشتن تراکنش‌ها، از نقاط حساس جلوگیری کنید .