3
votes

Scenario: I am trying to create consumer group for Azure Eventhub testing data in event hub. I want to create a consumer group every time I start my tests and destroy it after the tests are completed.

  • I am trying to program it in Java. Are there any SDKs, classes, methods, etc. which can help me with this?

  • Also, if you disagree with creating and destroying a consumer group for each test pass please let me know why.

I have seen a similar post for the .NET SDK but couldn't find anything similar for Java. Can someone please help?

Thanks JD

1
Improved readability, spelling, grammar, etc.entpnerd
Maybe you could check this link.Shui shengbao
This is through REST call. Is there any direct api if you know of?user8828251

1 Answers

1
votes

A Java library that may help you is the Azure Event Hubs Java library on Github. With this library, you can create new consumer groups. See the Consumer Groups section of this page for details. As for whether or not I agree with creating and destroying a new consumer group for each test, I don't have an opinion on that. For that one, you might be better off asking on Stack Exchange's Software Engineering site.