[英]How to trigger azure function when there is a message in Kafka topic
I am new to azure function and Kafka. 我是天蓝色函数和Kafka的新手。
I would like to know whether it is possible to trigger azure function when there is message in the Kafka topic? 我想知道当Kafka主题中有消息时是否可以触发azure函数?
Thanks 谢谢
Azure Functions need a trigger defined in order to run. Azure Functions需要定义一个触发器才能运行。 There is a limited set of supported trigger types, and Kafka is not one of them. 受支持的触发器类型数量有限,而Kafka并不是其中之一。
In order to consume messages from Kafka, you would first need to send them to a supported source (eg Azure Event Hubs) and configure Functions to listen to that new source. 为了使用来自Kafka的消息,您首先需要将它们发送到受支持的源(例如Azure事件中心),然后将Function配置为侦听该新源。
Azure have an extension for Kafka. Azure扩展了Kafka。 https://github.com/Azure/azure-functions-kafka-extension https://github.com/Azure/azure-functions-kafka-extension
;) ;)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.