Limit types
Some limits are tied to a package type. For example, the length of time that you can store messages for is dictated by which package you are on, from 1 day on a Free package up to 1 year on an Enterprise package. Other limits are more technical in nature. For example, the number of channels that a single realtime connection can be attached to, or the rate at which a single connection can publish messages. Others still are precautions against high message consumption. For example, the number of clients that can be present on a single channel.Contact Ably to discuss a limit that needs adjusting to fit your use case or needs at ably.com/support.
Viewing your limits
1
Log in
Log in to your account.
2
Navigate to limits
Select Limits from the Account menu.
3
View notifications
To view any limits that you have previously hit, click view recent limits notifications.
Exceeding a limit
If you exceed the limits of your package then it likely means that your app is performing well, and Ably won’t penalize your success by blocking usage for the majority of limits. Normal service will continue to function beyond the limit, up to a point, for certain limits. However, Ably will contact you to let you know that you need to upgrade your package to accommodate your increased usage. Limits will come into force either because there isn’t any buffer on them, or because you have exceeded the buffer.How limits are enforced
Exceeding the limit depends on the limit type:Count-based limits
Only a set amount of resources can be in use simultaneously. This means that any usage in excess of that limit will be restricted until existing resources are removed. Examples: Number of concurrent connections, concurrent channelsRate-based limits
The rate at which resources can be used, expressed as their frequency per second.- Usage in excess of a rate limit can be rejected locally (such as a publisher trying to publish at a rate in excess of the publish rate per channel)
- The publisher will have any publish attempts in excess of this rate rejected and have an error code returned
- Other rate limits apply rate suppression across your account when exceeded
- For example, if the limit for publishing messages into a queue is exceeded by twice the rate, then each message will have a 50% chance of being rejected
- The suppression probability is continuously updated based on the publishing rate
Notifications
Email notifications are sent out when you are nearing a limit, as well as when you have exceeded it. You will also see these notifications in your account dashboard and can view any limits that you have previously exceeded.Application limits
Application limits relate to the quantity of resources that can be created per account.Message limits
Message limits relate to the number, rate and bandwidth of messages consumed across your account. Message count limits and data transfer (bandwidth) limits are enforced separately.Channel limits
Channel limits relate to the number, rate and membership of channels on your account.Why concurrent channel limits exist
Unlike many other realtime platforms, Ably’s architectural design ensures delivery of a high quality of service and continuity for clients across changing network conditions and datacenter conditions (such as scaling events, network disruption or hardware failures). In order to achieve 99.999% uptime, guaranteed message delivery, and reliable message ordering, Ably’s system design can be considered “stateful”:- Every channel in the system is maintained by at least two nodes at any point in time
- In most cases many more nodes when clients connect through multiple datacenters
- Ably ensures that a channel is active in each regional datacenter that has attached clients
- Maintain message ordering for each client publishing messages
- Resume connection state recovery for clients that became disconnected
- Handle channel failure or intentional migration of channels between nodes without any loss of continuity
The peak channel limit is not the total number of channels created over time, but instead is the total number of channels simultaneously active at any point in time. Channels that are no longer in use (no clients attached and no messages being published) are closed automatically by the Ably platform.
Channel limit details
Understanding presence limits
Presence limits exist as a precaution against high message consumption. For example, 200 clients subscribed to presence events on a channel and all of them join and leave the presence set within a few minutes would result in:- 200 presence messages published for the enter event
- 200 × 200 (40,000) messages subscribed to for the enter events
- 200 presence messages published for the leave event
- 200 × 200 (40,000) presence messages subscribed to for the leave event
Connection limits
Connection limits relate to the realtime connections made to Ably from your account.Integration limits
Integration limits relate to the rate and concurrency of webhooks, queues and Firehose.API limits
API request limits are the maximum number of REST API requests, Control API requests and token requests that can be made to Ably.Next steps
Pricing
Understand pricing models and choose the right package
Billing
Learn about billing and invoicing
Upgrade package
Upgrade your package for higher limits
Contact support
Discuss custom limits for your use case
