In this article, I would brief about integrating function with another function.
Lets create timer function, here we would add a simple class file, common.csx with property function and enumeration as shown.
This function would act as message publisher, this would publish messages to event-hub and subscriber function would receive and process the message from event-hub.
Lets add, output for the function from Integrate tab and choose Azure EventHubs and then configure the connection details.
Lets publish a messages to event-hub from the Run method, as shown. Every minute messages are published to event-hub.
Now, lets create a subscriber event-hub trigger function and configure the same event-hub details. Let's keep the function simple, as shown below.
Once both functions are up and running, we can see message being exchanged from publisher and subscriber functions.
Top comments (0)