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
However, it looks like you can set a content type for messages. When set to JSON, we don't have to base64 encode the body. Messages look nicer in the Azure console/Data Explorer:
Can we set this on individual messages in the batch request?
If not, can we set it in the non-batch request? If so, we should just do it and set batch_size=1 to start.
Partition key
Setting the partition key is important for ordering. This is how SQS derives a group ID (in its pipeline):
@yordis Writing the docs for Event Hubs, these two felt relevant. If we can get partition key relatively cheaply (<1h of investigation), which I think we can do by introspecting one of the SDKs, we should do it.
May need to introspect in order to capture both of these properties.
ContentType
Right now, we send messages to Event Hub in a JSON body like this:
However, it looks like you can set a content type for messages. When set to JSON, we don't have to base64 encode the body. Messages look nicer in the Azure console/Data Explorer:
Can we set this on individual messages in the batch request?
If not, can we set it in the non-batch request? If so, we should just do it and set batch_size=1 to start.
Partition key
Setting the partition key is important for ordering. This is how SQS derives a group ID (in its pipeline):
Looking at the Event Hub Go SDK, I'm pretty sure we can add a partition key to individual messages:
https://github.com/Azure/azure-event-hubs-go/blob/master/event.go#L37-L48
However, it's not clear where to put that information.
We should intercept requests to the Azure API to figure out what the payload needs to look like to do this. To intercept, we can either:
The text was updated successfully, but these errors were encountered: