Pintu
Pintu

Reputation: 102

Best way to design Azure Functions to read events from more than one event hub

I want to design azure functions in Python language to read events from more than one event hub . The number of event hubs are not constant , it can increase or decrease (for example one event hub publishes logs from one azure AD tenant and in future AD tenants can be added). Each function will have same business logic ,only the even hub connection string will differ .

Event hub triggered function can use only one event hub , not more than more .

So, What is the best approach for this problem statement :

Upvotes: 1

Views: 707

Answers (1)

Frank Borzage
Frank Borzage

Reputation: 6796

If the business logic is exactly the same, then you can extract the core logic and put it in an http trigger function. You only need to create multiple Azure logic apps to trigger and pass the content of the event hub to the function for processing.

This way you don't have to worry about the downtime caused by multiple deployments, and I think it is easier to create multiple Azure logic apps than to create multiple Azure functions.

You can refer to my logic app design:

enter image description here

Upvotes: 1

Related Questions