I want to copy events including their header data unchanged to another Event Hub.
What I tried so far:
- an Azure Function with an Event Hubs Trigger and an Event Hubs Output. The function was implemented in C#, because that's the only runtime I found where I get access to the headers. The problem I saw here is that when headers are of type
byte[]
, the function fails on the output side with a message that it cannot serialize them. The messages are written to the source Event Hub with Kafka, which means all headers will be of typebyte[]
. - A simple Spring Cloud Stream application deployed to our OpenShift cluster. This works, but means an extra deployment to operate when we would have liked to have a serverless solution.
Are there simpler ways to do this?