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.
641 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bhargava-MSFT 31,031 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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.