firebase database limit

2022-04-08 00:00:00 专区 订阅 付费 交易 评论

Realtime Database Limits

The following are restrictions on data storage and operations in Firebase Realtime Database. To scale beyond any of these limits, use multiple databases.

Global

OperationLimitDescription
Simultaneous connections100,000A simultaneous connection is equivalent to one mobile device, browser tab, or server app connected to the database.

This isn't the same as the total number of users of your app, because your users don't all connect at once. For example, apps with 10 million monthly active users usually have fewer than 100,000 simultaneous connections. Your max simultaneous connections depends on your total user count and the average time users spend in your app.

However, if you need to scale beyond this limit, try using multiple databases.

Simultaneous responses sent from a single database.~100,000/secondResponses include simultaneous broadcast and read operations sent by the server from a single database at a given time. The limit refers to the data packets that represent each individual read or broadcast operation, including push notifications, sent from the database.
Number of Cloud Functions triggered by a single write1000While there isn't a limit to how many read or write operations you can trigger from a single function, a single database write operation can only trigger 1000 functions, per individual write operation.

Cloud Functions can only be triggered by write operations, and each function can also trigger more write operations that trigger more functions (each with their own 1000-function limit).

Size of a single event triggered by a write1 MBThe size of an event consists of the following values: 
  1. The existing data at the write location.
  2. The update value, or the delta in data necessary to write the new data to the location.
Write operations larger than 1MB succeed on the database, but they don't trigger a function invocation.
Data transfer to Cloud Functions10MB/sec sustainedThe rate of event data that can be forwarded to Cloud Functions.

相关文章