Understand Cloud Firestore billing | Firebase Documentation

文章推薦指數: 80 %
投票人數:10人

Note: Cloud Firestore offers free quota that allows you to get started at no cost. See Free quota for details. The following sections provide details about how ... Products Build Release&Monitor Engage UseCases Pricing Docs Overview Fundamentals Build Release&Monitor Engage Reference Samples Community Learn Events Support Language English BahasaIndonesia Deutsch Español–AméricaLatina Français Italiano Polski Português–Brasil TiếngViệt Türkçe Русский עברית العربيّة فارسی हिंदी বাংলা ภาษาไทย 中文–简体 中文–繁體 日本語 한국어 Gotoconsole Signin FirebaseDocumentation Overview Fundamentals AddFirebase-Appleplatforms(iOS+) AddFirebase-Android AddFirebase-Web AddFirebase-Flutter AddFirebase-C++ AddFirebase-Unity AddFirebase-Serverenvironments ManageFirebaseprojects Supportedplatforms&frameworks UseEmulatorSuite Build EmulatorSuite Authentication RealtimeDatabase Firestore Storage ML Hosting CloudFunctions SecurityRules AppCheck Extensions Release&Monitor Crashlytics PerformanceMonitoring TestLab AppDistribution Engage Analytics RemoteConfig A/BTesting CloudMessaging In-AppMessaging DynamicLinks GoogleAdMob GoogleAds AppIndexing Reference Samples Products More UseCases Pricing Docs More Overview Fundamentals More Build More Release&Monitor More Engage More Reference Samples Community More Support Gotoconsole Overview EmulatorSuite Introduction Connectyourappandprototype GetstartedConnecttotheAuthenticationemulatorConnecttotheRealtimeDatabaseemulatorConnecttotheCloudFirestoreemulatorConnecttotheCloudStorageemulatorConnecttotheCloudFunctionsemulatorUsetheExtensionsemulatorInstall,configureandintegrate Authentication IntroductionWheredoIstart?UsersinFirebaseProjects iOS+ Signinwithapre-builtUIGetStartedManageUsersPasswordAuthenticationEmailLinkAuthenticationGoogleFacebookLoginSigninwithAppleTwitterLoginGitHubMicrosoftYahooGameCenterSign-inPhoneNumberUseaCustomAuthSystemAnonymousAuthenticationEnablingcross-appauthenticationwithsharedKeychainLinkMultipleAuthProvidersPassingStateinEmailActionsHandleErrors Android Signinwithapre-builtUIGetStartedManageUsersPasswordAuthenticationEmailLinkAuthenticationGoogleFacebookLoginSigninwithAppleTwitterGitHubMicrosoftYahooPlayGamesSign-inPhoneNumberUseaCustomAuthSystemAnonymousAuthenticationLinkMultipleAuthProvidersPassingStateinEmailActions Flutter GetStartedManageUsersPasswordAuthenticationEmailLinkAuthenticationFederatedIdentity&SocialPhoneNumberUseaCustomAuthSystemAnonymousAuthenticationLinkMultipleAuthProvidersPassingStateinEmailActionsHandleErrors Web Signinwithapre-builtUIGetStartedManageUsersPasswordAuthenticationEmailLinkAuthenticationGoogleFacebookLoginSigninwithAppleTwitterGitHubMicrosoftYahooPhoneNumberUseaCustomAuthSystemAnonymousAuthenticationLinkMultipleAuthProvidersCustomizeDependenciesOAuthSign-InforCordovaAuthStatePersistencePassingStateinEmailActionsServiceWorkerSessions C++ GetStartedManageUsersPasswordAuthenticationGooglePlayGamesSign-inGitHubFacebookLoginSigninwithAppleTwitterLoginMicrosoftYahooPhoneNumberUseaCustomAuthSystemAnonymousAuthenticationLinkMultipleAuthProviders Unity GetStartedManageUsersPasswordAuthenticationGooglePlayGamesSign-inGitHubAuthenticationFacebookLoginSigninwithAppleTwitterLoginMicrosoftYahooPhoneNumberUseaCustomAuthSystemAnonymousAuthenticationLinkMultipleAuthProviders Admin IntroductionManageUsersImportUsersCreateCustomTokensVerifyIDTokensManageUserSessionsManageSessionCookiesControlAccesswithCustomClaimsGeneratingEmailActionLinksErrorsMigrationGuideCustomizetheEmailActionHandlerExtendwithCloudFunctionsEmailCustomDomainsCaseStudiesUsageLimits RealtimeDatabase IntroductionChooseaDatabase iOS+ GetStartedStructureDataReadandWriteDataWorkwithListsofDataEnableOfflineCapabilities Android GetStartedStructureDataReadandWriteDataWorkwithListsofDataEnableOfflineCapabilities Web GetStartedStructureDataReadandWriteDataWorkwithListsofDataEnableOfflineCapabilities Flutter GetStartedStructureDataReadandWriteDataWorkwithListsofDataEnableOfflineCapabilities Admin GetStartedStructureDataSaveDataRetrieveData REST GetStartedStructureDataSaveDataRetrieveDataAuthenticateRESTRequests C++ GetStartedStructureDataSaveDataRetrieveData Unity GetStartedStructureDataSaveDataRetrieveData Security&Rules UnderstandRulesGetStartedStructureSecurityRulesWriteConditionsforSecurityRulesIndexDataManageRulesviaREST UsageandPerformance UnderstandBillingRealtimeDatabaseLimitsMonitorDatabaseUsageMonitorDatabasePerformanceScalewithMultipleDatabasesProfileYourDatabaseOptimizeDatabasePerformanceAutomatedBackupsExtendwithCloudFunctionsVideoseries:FirebaseforSQLDevelopers CloudFirestore IntroductionGetstarted UnderstandCloudFirestore CompareCloudFirestoreandRealtimeDatabaseDatamodelDatatypesSDKsandclientlibrariesIndextypesDatabaselocationsDatabundles Addandmanagedata StructuredataAdddataTransactionsandbatchedwritesDatacontentionintransactionDeletedataManageCloudFirestorewiththeFirebaseConsoleExportandimportdataMovedatabetweenprojects Readdata GetdataonceListenforrealtimeupdatesPerformsimpleandcompoundqueriesOrderandlimitdataPaginatedatawithquerycursorsAccessdataofflineManageindexes Secureandvalidatedata OverviewGetstartedStructureSecurityRulesWritingconditionsforSecurityRulesFixinsecurerulesTestyourSecurityRulesSecurelyquerydataControlaccessperfield Solutions OverviewFirestoreLiteWebSDKAggregationQueriesDistributedcountersFull-textsearchBuildpresenceSecuredataaccessforusersandgroupsDeletedatawithacallableCloudFunctionScheduledataexportsShardedtimestampsGeoqueriesAutomatingdatabasecreationReduceindexcostswithmapfieldsServebundledFirestorecontentfromaCDN Usage,limits,andpricing UsageandlimitsMonitorusageUnderstandCloudFirestorebillingExampleCloudFirestorecostsUnderstandstoragesizecalculationsBestpracticesforCloudFirestore CloudFirestoreintegrations UsetheCloudFirestoreRESTAPIUseCloudFirestoreandRealtimeDatabaseExtendwithCloudFunctionsThird-partylibraryintegrations APIreference AndroidSwiftObjective-CWebFlutterCloudFunctionsNode.jsJavaPythonGoC#PHPRubyC++UnityRESTRPC Samples iOSAndroidWeb Storage Introduction iOS+ GetStartedCreateaReferenceUploadFilesDownloadFilesUseFileMetadataDeleteFilesListFilesHandleErrors Android GetStartedCreateaReferenceUploadFilesDownloadFilesUseFileMetadataDeleteFilesListFilesHandleErrors Web GetStartedCreateaReferenceUploadFilesDownloadFilesUseFileMetadataDeleteFilesListFilesHandleErrors Flutter GetStartedCreateaReferenceUploadFilesDownloadFilesUseFileMetadataDeleteFilesListFilesHandleErrors Admin GetStarted C++ GetStartedCreateaReferenceUploadFilesDownloadFilesUseFileMetadataDeleteFilesHandleErrors Unity GetStartedCreateaReferenceUploadFilesDownloadFilesUseFileMetadataDeleteFilesHandleErrors Security&Rules UnderstandSecurityGetStartedStructureSecurityRulesWriteConditionsforSecurityRulesMonitoractivityExtendwithCloudFunctionsIntegratewithGoogleCloud MachineLearning IntroductionCodelabs CustomModels Useacustommodel OverviewiOS+AndroidFlutterDeploy&managecustommodels MigratefromthelegacyAPI iOS+Android CloudAutoMLVisionEdge OverviewTrainimagelabelingmodels Labelimageswithyourmodels iOS+AndroidTrainobjectdetectionmodels Detectobjectswithyourmodels iOS+AndroidMigratedatasets UseCloudVisionAPIs Recognizetext OverviewiOS+Android Labelimages OverviewiOS+Android Recognizelandmarks OverviewiOS+Android DeprecatedVisionSDKs Recognizetext iOS+Android Labelimages iOS+Android Recognizelandmarks iOS+Android AdvancedTopics A/Btesttwoversionsofamodel iOS+Android PrepareforProduction ProtectyourCloudcredentials iOS+Android LegacyDocumentation MLKitforFirebase Introduction Vision Recognizetext OverviewiOSAndroid Detectfaces OverviewConceptsiOSAndroid Scanbarcodes OverviewiOSAndroid Labelimages OverviewiOSAndroid Detectandtrackobjects OverviewiOSAndroid Recognizelandmarks OverviewiOSAndroid AutoMLVisionEdge OverviewTrainimagelabelingmodels Labelimageswithyourmodels iOSAndroidMigratedatasets NaturalLanguage Identifythelanguageoftext OverviewiOSAndroid Translatetext OverviewiOSAndroidUsageguidelines Generatesmartreplies OverviewiOSAndroid CustomModels Useacustommodel OverviewiOSAndroidManagehostedcustommodels UseacustomTensorFlowLitebuild iOSAndroid AdvancedTopics A/Btesttwoversionsofamodel iOSAndroid PrepareforProduction Reduceapppackagesize Android ProtectyourCloudcredentials iOSAndroid Hosting IntroductionWhatcanyoudowithFirebaseHosting?GetstartedTest,preview,thendeployDeployviaGitHubpullrequestsShareprojectresourcesacrossmultiplesitesConnectacustomdomainConfigurehostingbehaviorConfigurei18nrewritesAddSDKsusingreservedURLs Servedynamiccontentandhostmicroservices OverviewUseCloudFunctionsforFirebaseUseCloudRunManagecachebehaviorManagelive&previewchannels,releases,andversionsMonitorwebrequestdatawithCloudLoggingUsage,quotas,andpricingDeployusingtheRESTAPI CloudFunctions IntroductionWhatcanIdowithCloudFunctions?Getstarted Callfunctionsdirectly CallfunctionsfromyourappCallfunctionsviaHTTPrequestsEnqueuefunctionswithCloudTasksRunfunctionsonaschedule Triggerbackgroundfunctions CloudFirestoretriggersRealtimeDatabasetriggersRemoteConfigtriggersAuthenticationtriggersAnalyticstriggersCloudStoragetriggersPub/SubtriggersTestLabtriggers Writefunctions ManagedeploymentandruntimeoptionsWritefunctionsinTypeScriptSync,async,andpromisesRetryasynchronousfunctionsConfigureyourenvironmentOrganizefunctionsHandlingdependenciesOptimizingnetworkingTips&tricks Testfunctions RunfunctionslocallyUnittestingfunctionsTestfunctionsinteractively Monitorfunctions WriteandviewlogsReporterrorsViewmonitoredmetrics APIReference FirebaseSDKforCloudFunctionsTestSDKProtocolspecificationforhttps.onCall CloudFunctionsv2publicpreview OverviewGetstarted Writefunctions ConfigureyourenvironmentManagedeploymentandruntimeoptionsEnqueuefunctionswithCloudTasksFirebaseAlertstriggersCustomevent/extensiontriggersHTTPtriggersCallablefunctionsPub/SubtriggersCloudStoragetriggersMonitorfunctionsOrganizefunctions APIreference firebase-functionsVideoSeries:learnCloudFunctionsCloudFunctionsandFirebaseCloudFunctionslocationsQuotasandlimits SecurityRules IntroductionGetstarted UnderstandSecurityRules SecurityRuleslanguageHowSecurityRulesworkSecurityRulesandFirebaseAuthentication WriteSecurityRules BasicSecurityRulesAvoidinsecurerulesDatavalidation TestSecurityRules SetuptheemulatorBuildunittestsGeneratetestreportsQuicklyvalidateSecurityRulesManageanddeploySecurityRules AppCheck Introduction Defaultproviders iOS+(DeviceCheck)iOS+(AppAttest)Android(PlayIntegrity)Android(SafetyNet)Web(reCAPTCHAv3)Web(reCAPTCHAEnterprise)Flutter Customproviders ImplementacustomproviderUseacustomprovideroniOS+UseacustomproviderinAndroidUseacustomproviderinwebapps AppCheckindebugenvironments UsethedebugprovideriniOS+UsethedebugproviderinAndroidUsethedebugproviderinwebappsUsethedebugproviderwithFlutterEnableCloudFunctions Protectnon-Firebaseresources iOS+AndroidWebFlutterVerifytokensfromacustombackend Extensions Introduction Useanextensioninyourproject OverviewInstallanextensionManageinstalledextensionsPermissionsgrantedtoanextensionManageconfigurationswithmanifests ExtensionsbyFirebase TriggerEmail GetstartedUseHandlebarstemplatesManagedeliverystatusResizeImagesExportCollectionstoBigQueryDeleteUserDataTranslateTextDistributedCounterShortenURLsLimitChildNodesSamples Relatedproducts CloudMessaging RemoteConfig Build Release&Monitor Engage Overview Fundamentals Build Release&Monitor Engage Reference Samples Learn Events AddFirebase-Appleplatforms(iOS+) AddFirebase-Android AddFirebase-Web AddFirebase-Flutter AddFirebase-C++ AddFirebase-Unity AddFirebase-Serverenvironments ManageFirebaseprojects Supportedplatforms&frameworks UseEmulatorSuite EmulatorSuite Authentication RealtimeDatabase Firestore Storage ML Hosting CloudFunctions SecurityRules AppCheck Extensions Crashlytics PerformanceMonitoring TestLab AppDistribution Analytics RemoteConfig A/BTesting CloudMessaging In-AppMessaging DynamicLinks GoogleAdMob GoogleAds AppIndexing Checkoutwhat’snewfromFirebaseatGoogleI/O2022.Learnmore Firebase FirebaseDocumentation Build Sendfeedback UnderstandCloudFirestorebilling ThisdocumentexplainsCloudFirestorepricingdetails.Italsotellsyouhow tolimitandmonitoryourspendingonCloudFirestore. IfyoupayinacurrencyotherthanUSD,thepriceslistedinyourcurrencyon CloudPlatformSKUsapply. Pricingoverview WhenyouuseCloudFirestore,youarechargedforthefollowing: Thenumberofdocumentsyouread,write,anddelete. Theamountofstoragethatyourdatabaseuses,includingoverheadfor metadataandindexes. Theamountofnetworkbandwidththatyouuse. Storageandbandwidthusagearecalculatedingibibytes(GiB),where1GiB= 230bytes.Allchargesaccruedaily. Note:CloudFirestoreoffersfreequotathatallowsyoutogetstartedat nocost.SeeFreequotafordetails. Thefollowingsectionsprovidedetailsabouthowyouarechargedforyour CloudFirestoreusage. Pricingbylocation Thefollowingtablelistspricingforreads,writes,deletes,andstoragefor eachCloudFirestorelocation: Selectregion US(multi-region) US(multi-region) Pricingbeyondthefreequota Documentreads $0.06per100,000documents Documentwrites $0.18per100,000documents Documentdeletes $0.02per100,000documents Storeddata $0.18/GiB/month Oregon Oregon Pricingbeyondthefreequota Documentreads $0.03per100,000documents Documentwrites $0.09per100,000documents Documentdeletes $0.01per100,000documents Storeddata $0.15/GiB/month LosAngeles LosAngeles Pricingbeyondthefreequota Documentreads $0.036per100,000documents Documentwrites $0.108per100,000documents Documentdeletes $0.012per100,000documents Storeddata $0.108/GiB/month SaltLakeCity SaltLakeCity Pricingbeyondthefreequota Documentreads $0.036per100,000documents Documentwrites $0.108per100,000documents Documentdeletes $0.012per100,000documents Storeddata $0.108/GiB/month NorthernVirginia NorthernVirginia Pricingbeyondthefreequota Documentreads $0.033per100,000documents Documentwrites $0.099per100,000documents Documentdeletes $0.011per100,000documents Storeddata $0.099/GiB/month LasVegas LasVegas Pricingbeyondthefreequota Documentreads $0.033per100,000documents Documentwrites $0.099per100,000documents Documentdeletes $0.011per100,000documents Storeddata $0.165/GiB/month SouthCarolina SouthCarolina Pricingbeyondthefreequota Documentreads $0.06per100,000documents Documentwrites $0.18per100,000documents Documentdeletes $0.02per100,000documents Storeddata $0.18/GiB/month Montreal Montreal Pricingbeyondthefreequota Documentreads $0.033per100,000documents Documentwrites $0.099per100,000documents Documentdeletes $0.011per100,000documents Storeddata $0.099/GiB/month SãoPaulo SãoPaulo Pricingbeyondthefreequota Documentreads $0.045per100,000documents Documentwrites $0.135per100,000documents Documentdeletes $0.015per100,000documents Storeddata $0.135/GiB/month Europe(multi-region) Europe(multi-region) Pricingbeyondthefreequota Documentreads $0.06per100,000documents Documentwrites $0.18per100,000documents Documentdeletes $0.02per100,000documents Storeddata $0.18/GiB/month Zürich Zürich Pricingbeyondthefreequota Documentreads $0.042per100,000documents Documentwrites $0.126per100,000documents Documentdeletes $0.014per100,000documents Storeddata $0.210/GiB/month Warsaw Warsaw Pricingbeyondthefreequota Documentreads $0.039per100,000documents Documentwrites $0.117per100,000documents Documentdeletes $0.013per100,000documents Storeddata $0.195/GiB/month Frankfurt Frankfurt Pricingbeyondthefreequota Documentreads $0.039per100,000documents Documentwrites $0.117per100,000documents Documentdeletes $0.013per100,000documents Storeddata $0.117/GiB/month London London Pricingbeyondthefreequota Documentreads $0.039per100,000documents Documentwrites $0.117per100,000documents Documentdeletes $0.013per100,000documents Storeddata $0.117/GiB/month Mumbai Mumbai Pricingbeyondthefreequota Documentreads $0.035per100,000documents Documentwrites $0.104per100,000documents Documentdeletes $0.012per100,000documents Storeddata $0.104/GiB/month Sydney Sydney Pricingbeyondthefreequota Documentreads $0.038per100,000documents Documentwrites $0.115per100,000documents Documentdeletes $0.013per100,000documents Storeddata $0.115/GiB/month HongKong HongKong Pricingbeyondthefreequota Documentreads $0.06per100,000documents Documentwrites $0.18per100,000documents Documentdeletes $0.02per100,000documents Storeddata $0.18/GiB/month Taiwan Taiwan Pricingbeyondthefreequota Documentreads $0.0345per100,000documents Documentwrites $0.1042per100,000documents Documentdeletes $0.0115per100,000documents Storeddata $0.1725/GiB/month Tokyo Tokyo Pricingbeyondthefreequota Documentreads $0.038per100,000documents Documentwrites $0.115per100,000documents Documentdeletes $0.013per100,000documents Storeddata $0.115/GiB/month Singapore Singapore Pricingbeyondthefreequota Documentreads $0.0369per100,000documents Documentwrites $0.1107per100,000documents Documentdeletes $0.0123per100,000documents Storeddata $0.1846/GiB/month Jakarta Jakarta Pricingbeyondthefreequota Documentreads $0.038per100,000documents Documentwrites $0.115per100,000documents Documentdeletes $0.013per100,000documents Storeddata $0.192/GiB/month Osaka Osaka Pricingbeyondthefreequota Documentreads $0.038per100,000documents Documentwrites $0.115per100,000documents Documentdeletes $0.013per100,000documents Storeddata $0.195/GiB/month Seoul Seoul Pricingbeyondthefreequota Documentreads $0.038per100,000documents Documentwrites $0.115per100,000documents Documentdeletes $0.013per100,000documents Storeddata $0.192/GiB/month IfyoupayinacurrencyotherthanUSD,thepriceslistedinyourcurrencyon CloudPlatformSKUsapply. Reads,writes,anddeletes Youarechargedforeachdocumentread,write,anddeletethatyouperformwith CloudFirestore. Chargesforwritesanddeletesarestraightforward.Forwrites,eachsetor updateoperationcountsasasinglewrite. Chargesforreadshavesome nuancesthatyoushouldkeepinmind.Thefollowingsectionsexplainthese nuancesindetail. Listeningtoqueryresults CloudFirestoreallowsyoutolistentotheresultsofa queryandgetrealtimeupdateswhenthequeryresultschange. Whenyoulistentotheresultsofaquery,youarechargedforareadeachtime adocumentintheresultsetisaddedorupdated.Youarealsochargedfora readwhenadocumentisremovedfromtheresultsetbecausethedocumenthas changed.(Incontrast,whenadocumentisdeleted,youarenotchargedfora read.) Also,ifthelistenerisdisconnectedformorethan30minutes(forexample,if theusergoesoffline),youwillbechargedforreadsasifyouhadissueda brand-newquery. Managinglargeresultsets CloudFirestorehasseveralfeaturestohelpyoumanagequeriesthat returnalargenumberofresults: Cursors,whichallowyoutoresumealong-runningquery. Pagetokens,whichhelpyoupaginatethequeryresults. Limits,whichspecifyhowmanyresultstoretrieve. Offsets,whichallowyoutoskipafixednumberofdocuments. Therearenoadditionalcostsforusingcursors,pagetokens,andlimits.In fact,thesefeaturescanhelpyousavemoneybyreadingonlythedocumentsthat youactuallyneed. However,whenyousendaquerythatincludesanoffset,youarechargedaread foreachskippeddocument.Forexample,ifyourqueryusesanoffsetof10,and thequeryreturns1document,youarechargedfor11reads.Becauseofthis additionalcost,youshouldusecursorsinsteadofoffsetswheneverpossible. Queriesotherthandocumentreads Forqueriesotherthandocumentreads,suchasarequestforalistof collectionIDs,youarebilledforonedocumentread.Iffetchingthecomplete setofresultsrequiresmorethanonerequest(forexample,ifyouareusing pagination),youarebilledonceperrequest. Minimumchargeforqueries Thereisaminimumchargeofonedocumentreadforeachquerythatyouperform, evenifthequeryreturnsnoresults. CloudFirestoreSecurityRules Formobileandwebclientlibraries,ifyour CloudFirestoreSecurityRulesuseexists(),get(),orgetAfter()toread oneormoredocumentsfromyourdatabase,youarechargedforadditionalreads asfollows: Youarechargedforreadsthatarenecessarytoevaluateyour CloudFirestoreSecurityRules. Forexample,ifyourrulesrefertothreedocuments,but CloudFirestoreonlyhastoreadtwoofthosedocumentstoevaluate yourrules,youwillbechargedfortwoadditionalreadsforthedependent documents. Youareonlychargedonereadperdependentdocumentevenifyourrules refertothatdocumentmorethanonce. Youarechargedforruleevaluationonlyonceperrequest. Asaresult,itcancostlesstoreadmultipledocumentsthantoread documentsoneatatime,becausereadingmultipledocumentsrequiresfewer requests. Whenyoulistentotheresultsofaquery,youarechargedforruleevaluation inallofthefollowingcases: Whenyouissuethequery. Eachtimethequeryresultsareupdated. Anytimetheuser'sdevicegoesoffline,thencomesbackonline. Anytimeyouupdateyourrules. Anytimeyouupdatethedependentdocumentsinyourrules. Storagesize YouarechargedfortheamountofdatathatyoustoreinCloudFirestore, includingstorageoverhead.Theamountofoverheadincludesmetadata,automatic indexes,andcompositeindexes.EachdocumentstoredinCloudFirestore requiresthefollowingmetadata: ThedocumentID,includingthecollectionIDandthedocumentname. Thenameandvalueofeachfield.BecauseCloudFirestoreis schemaless,thenameofeachfieldinadocumentmustbestoredwiththefield value. Anysingle-fieldandcompositeindexesthatrefertothedocument.Eachindex entrycontainsthecollectionID;anynumberoffieldvalues,dependingonthe indexdefinition;andthedocumentname. LearnhowCloudFirestorestorageiscalculatedatStorageSize Calculations.Youcanviewtheamountofstoragethatyour databaseusesbyvisitingtheAppEngineQuotaDetailspagein theGCPConsole. Networkbandwidth YouarechargedforthenetworkbandwidthusedbyyourCloudFirestore requests,asshowninthefollowingsections.Thenetworkbandwidthcostofa CloudFirestorerequestdependsontherequest’sresponsesize,the locationofyourCloudFirestoredatabase,andthedestinationofthe response. CloudFirestorecalculatesresponsesizebasedonaserializedmessage format.Protocoloverhead,suchasSSLoverhead,doesnotcounttowardsnetwork bandwidthusage.RequestsdeniedbyyourCloudFirestoreSecurityRulesdonotcount towardsnetworkbandwidthusage. Tolearnhowmuchnetwork bandwidthyouhaveused,youcanusetheGCPConsoletoexportyour billingdatatoafile. Generalnetworkpricing ForrequeststhatoriginatewithinGoogleCloudPlatform(forexample,froman applicationrunningonGoogleComputeEngine),youarechargedasfollows: Traffictype Price Ingress Free Egresswithinaregion Free Egressbetweenregionsinthesamemulti-region Free EgressbetweenregionswithintheUS(perGiB) $0.01(first10GiBpermontharefree) Egressbetweenregions,notincludingtrafficbetweenUSregions GoogleCloudPlatforminternetegressrates IfyoupayinacurrencyotherthanUSD,thepriceslistedinyourcurrencyon CloudPlatformSKUsapply. CloudFirestoreisalsosubjecttoadditionalinternetegresschargesfor thefollowing: GoogleCloudrequestsbetweenregions,notincludingtrafficbetweenUS regions RequestsfromoutsideofGoogleCloud(forexample,fromauser'smobile device) SeeGoogleCloudinternetegressrates. Seeapricingexample ToseehowCloudFirestorebillingcostsaccrueinareal-worldsample app,seetheCloudFirestorebillingexample. Managespending Tohelpavoidunexpectedchargesonyourbill,set monthlybudgetsandalertsusingGoogleCloud'sbillingconsole. TomonitoryourCloudFirestoreusage,opentheCloudFirestore Usagetab intheFirebaseConsole.Usethedashboardtogaugeyourusage overdifferenttimeperiods. Sendfeedback Exceptasotherwisenoted,thecontentofthispageislicensedundertheCreativeCommonsAttribution4.0License,andcodesamplesarelicensedundertheApache2.0License.Fordetails,seetheGoogleDevelopersSitePolicies.JavaisaregisteredtrademarkofOracleand/oritsaffiliates. Lastupdated2022-05-26UTC. [{ "type":"thumb-down", "id":"missingTheInformationINeed", "label":"MissingtheinformationIneed" },{ "type":"thumb-down", "id":"tooComplicatedTooManySteps", "label":"Toocomplicated/toomanysteps" },{ "type":"thumb-down", "id":"outOfDate", "label":"Outofdate" },{ "type":"thumb-down", "id":"samplesCodeIssue", "label":"Samples/codeissue" },{ "type":"thumb-down", "id":"otherDown", "label":"Other" }] [{ "type":"thumb-up", "id":"easyToUnderstand", "label":"Easytounderstand" },{ "type":"thumb-up", "id":"solvedMyProblem", "label":"Solvedmyproblem" },{ "type":"thumb-up", "id":"otherUp", "label":"Other" }] Needtotellusmore? Learn Guides Reference Samples Libraries GitHub Stayconnected Blog FirebaseSummit Facebook Twitter YouTube Support Contactsupport StackOverflow Slackcommunity Googlegroup Releasenotes FAQs Android Chrome Firebase GoogleCloudPlatform Allproducts Terms Privacy Language English BahasaIndonesia Deutsch Español–AméricaLatina Français Italiano Polski Português–Brasil TiếngViệt Türkçe Русский עברית العربيّة فارسی हिंदी বাংলা ภาษาไทย 中文–简体 中文–繁體 日本語 한국어



請為這篇文章評分?