From the course: Azure Event Hubs for Developers

Unlock the full course today

Join today to access over 23,200 courses taught by industry experts.

Understanding partitions

Understanding partitions

- [Instructor] We have seen the term partition come up during different stages of our event hub application. Now, let's take a look and see what they are and how they're used. A partition is nothing more than an ordered sequence of events inside the event hub. When new events are received, they're added at the end of the sequence. If we have more than one partition for the event hub, then events are distributed between all partitions as they come in. The data will be distributed as evenly as possible between different partitions. Since each partition is independent from one another and they have their own sequence of data, they can grow at different rates, so one partition might contain more events than another but overall the distribution will be even, unless when we create our events we specify the partition that we want to send them to. While this might be desirable sometimes so you can group different events in the…

Contents