You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sdk/eventhub/azure-eventhubs/HISTORY.md
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,18 @@
1
1
# Release History
2
+
## 5.0.0b3 (2019-09-10)
3
+
4
+
**New features**
5
+
-`EventProcessor` has a load balancer that balances load among multiple EventProcessors automatically
6
+
- In addition to `SamplePartitionManager`, A new `PartitionManager` implementation that uses Azure Blob Storage is added
7
+
to centrally store the checkpoint data for event processors. It's not packaged separately as a plug-in to this package.
8
+
Refer to [Azure Blob Storage Partition Manager](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhubs-checkpointstoreblob-aio) for details.
9
+
10
+
**Breaking changes**
11
+
12
+
-`PartitionProcessor` constructor removed argument "checkpoint_manager". Its methods (initialize, process_events,
13
+
process_error, close) added argument "partition_context", which has method update_checkpoint.
14
+
-`CheckpointManager` was replaced by `PartitionContext`
15
+
- Renamed `Sqlite3PartitionManager` to `SamplePartitionManager`
Copy file name to clipboardExpand all lines: sdk/eventhub/azure-eventhubs/README.md
+9-13Lines changed: 9 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -217,13 +217,16 @@ Using an `EventHubConsumer` to consume events like in the previous examples puts
217
217
218
218
The `EventProcessor` will delegate the processing of events to a `PartitionProcessor` that you provide, allowing you to focus on business logic while the processor holds responsibility for managing the underlying consumer operations including checkpointing and load balancing.
219
219
220
-
While load balancing is a feature we will be adding in the next update, you can see how to use the `EventProcessor` in the below example, where we use an in memory `PartitionManager` that does checkpointing in memory.
220
+
You can see how to use the `EventProcessor` in the below example, where we use an in memory `PartitionManager` that does checkpointing in memory.
221
+
222
+
[Azure Blob Storage Partition Manager](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhubs-checkpointstoreblob-aio) is another `PartitionManager` implementation that allows multiple EventProcessors to share the load balancing and checkpoint data in a central storage.
223
+
221
224
222
225
```python
223
226
import asyncio
224
227
225
228
from azure.eventhub.aio import EventHubClient
226
-
from azure.eventhub.eventprocessor import EventProcessor, PartitionProcessor, Sqlite3PartitionManager
229
+
from azure.eventhub.aio.eventprocessor import EventProcessor, PartitionProcessor, SamplePartitionManager
227
230
228
231
connection_str ='<< CONNECTION STRING FOR THE EVENT HUBS NAMESPACE >>'
0 commit comments