Tuesday, 6 August 2019

kafka event bus


basic knowledge:


kafka:
https://www.w3cschool.cn/apache_kafka/apache_kafka_quick_guide.html


event hub for kafka user:
https://azure.microsoft.com/en-us/blog/announcing-the-general-availability-of-azure-event-hubs-for-apache-kafka/

this is very similar as cosmos db, microsoft make a new db, they want to make mongo users to switch to cosmos without changing anything,, they made a cosmos mongo api.

i guess event hub is using the same strategy to steel kafka users.

https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-for-kafka-ecosystem-overview

https://azure.microsoft.com/en-us/updates/azure-event-hubs-for-apache-kafka-is-now-available/


-----
Create a project and run some code step by step:
following :
setup event hubs for kafka: (make sure you choose standard price layer  which support kafka)
https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-create-kafka-enabled

then follow this to run java to connect to the event hub:
https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-quickstart-kafka-enabled-event-hubs

code are here (also can be found from above link)
https://github.com/Azure/azure-event-hubs-for-kafka



------
Other useful links:
auzre event hub sample:

https://github.com/Azure/azure-event-hubs/tree/master/samples


kafka envent hub:
https://github.com/Azure/azure-event-hubs/tree/master/samples/kafka

No comments:

Post a comment