There is one feature of Azure Event Hub that requires an individual section itself to describe it in depth. It is capture, a functionality which allows you to automatically store events using a predefined storage solution (such as Azure Storage or Azure Data Lake) and process it further. Unfortunately, this particular feature is often misused as its use cases are not so obvious; additionally, the way it works might sometimes be unclear.
Azure Event Hub Capture feature
How Azure Event Hub Capture works
In common use cases for Event Hub, you need a producer and a consumer to fetch data and process it. Let's consider the following scenario:
![](https://static.packt-cdn.com/products/9781789340624/graphics/assets/2b9ba131-0184-4ac7-a17e-72c044383b8a.png)
In this scenario, we have two consumers:
- Consumer 1 for some generic processing...