Is there a configuration in EventHub to decompress gzipped messages automatically?

Udi Ben Hamo 0 Reputation points
2024-03-28T11:58:07.33+00:00

Hi,

Messages ingested into EventHub in gzip format are being fetched in json format.

I haven't found any configuration that might explain this.

Could it be that Azure decompresses messages automatically? Is there a configuration relevant for this scenario?

Thanks,

Udi

Azure Event Hubs
Azure Event Hubs
An Azure real-time data ingestion service.
557 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. BhargavaGunnam-MSFT 26,136 Reputation points Microsoft Employee
    2024-03-28T17:41:37.55+00:00

    Hello Udi Ben Hamo,

    Welcome to the Microsoft Q&A forum.

    My understanding is, Azure Event Hubs does not automatically decompress gzipped messages. The decompression of the messages is typically handled at the receiver’s end.

    When a message is sent to Event Hubs in a compressed format like gzip, it will remain in that format until it is explicitly decompressed by the receiving service.

    Please update the following settings on your eventhub and see if it resolves the issue.

    • change compression to None on your data connection
    • change the data format to MultiJSON