Search code examples
azurespring-bootspring-kafkaamqpazure-eventhub

What is the difference between azure-eventhubs and spring-cloud-azure-eventhubs-stream-binder?


My requirement is a simple pub-sub using Azure Events Hub using Spring.

Upon checking the documentation, I've found 2 articles which demonstrate the integration. One uses azure-eventhubs library and the other uses spring-cloud-azure-eventhubs-stream-binder.

What is the difference between the two?


Solution

  • First be careful that you where referring to an old version of the article to use Azure Event Hubs in Java, here is the most recent one.

    In the first one the article shows you how to use the Java SDK for Event Hubs in a "classic" java application.

    The second article explain how to use Event Hubs in a Spring Boot Java application (Spring Boot is an open-source framework maintained by Pivotal).