Scaling Azure Event Hubs
As mentioned earlier, Azure Event Hubs is based on TUs. These tell you how many messages Azure Event Hubs can handle. For 1 TU, you will have the following available:
- Up to 1 megabyte (MB)/1,000 events per second for ingress
- Up to 2 MB/4,096 events for egress
Once exceeded, your instance of Azure Event Hubs will start failing by returning HTTP 429
status codes.
What we have just said is true only if you are using the Standard tier for your Azure Event Hubs instance. When provisioned using the Premium tier, the capacity of that service is defined using PUs. While much more expensive, a Premium instance of Azure Event Hubs with 1 PU can handle 5-10 MB of ingress and 10-20 MB for egress.
In Azure Event Hubs, you can handle all messages in parallel using partitions. The more partitions you have, the more consumers you can host. Generally speaking, this directly affects your ability to handle more traffic. If each consumer can work on its...