Azure eventhub capture replay
Asked Answered
M

1

7

Scenario

I create an eventhub on Jan 1st 2018.

My eventhub retention period is set to be 1 day.

I enable the "capture", leaving the default capture parameters of every 5 mins or 300 mb, feature and store in a container named "customerevents"

I send, and process, 1000,000 customer events to my eventhub up to today, 22nd October 2018.

I create a new service for a different department that is interested in historic data & now need to replay ALL the 1000,000 messages I have received since 1st Jan 2018.

I have lots and lots of "folders" in my customerevents storage container for year/month/day and every 5 mins and in each an .avro file containing my captured events.

How do I "replay" all of these events for my new service?

Any advice appreciated.

Married answered 22/10, 2018 at 10:33 Comment(1)
Did you find a solution for this?Beulabeulah
P
0

Natively you can't just "replay" such an amount of events back to the Event Hub.

The capture feature of the Event Hub is meant to be unilateral, therefore as an output to an Event Hub Event, but can't be the input itself of the Event Hub. At least, as I said, not natively.

There are ways to handle although not for your use case, since the events spam over months. You should use a completely other tool then: please look at this C# Tool that just input some Avro files and send it to an Event Hub. It is your use case: https://github.com/msatmsft/event-hub-replay

Packer answered 23/6 at 9:51 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.