Consuming events from an IoT hub

Hello

I’m working on a POC where I need to consume events from an IoT hub. Is there a way to configure a Vercel function to work with events rather than API requests?

Is a Cron function more appropriate for this? I can pull the events during function invocations but I suspect I wouldn’t be able to benefit from the auto-scaling feature of the regular API based functions.

Thanks for any guidance.

Mo

How does your IoT hub send the events?

If it’s a webhook system then you can set that to point at your vercel deployment

Vercel does support scheduled functions, or you can use something like a scheduled Github Action to ping an endpoint at a regular interval if you prefer that

Hi

I’m using the default EventHub endpoint from the (Azure) IoT Hub to consume events. I already have an Azure function that can consume the events, but it seems a bit clunky.

Thanks for the webhook suggestion. I will look into it.