keda icon indicating copy to clipboard operation
keda copied to clipboard

Provide scaler for Azure IoT Hubs

Open tomkerkhove opened this issue 5 years ago • 14 comments

Proposal - Azure IoT Hubs would be a great scaler for IoT scenarios

tomkerkhove avatar May 20 '19 16:05 tomkerkhove

Agreed

thdotnet avatar May 20 '19 16:05 thdotnet

IoT Hub and Event Hubs "consume" the same way today. For example, with Azure Functions the IoT Hub trigger and Event Hub trigger are both really just 'event hub' trigger. Would that also work here? Is there any need to build something specific to Azure IoT Hubs, or would it be more or less an alias to Event Hubs?

jeffhollan avatar May 20 '19 17:05 jeffhollan

That's correct but as you suggest I think we need to have an alias for this as a lot of customers are not aware of it (and frankly they shouldn't care).

So I'm fine with just an alias, unless there is another reasonable scenario in which people would want to scale.

tomkerkhove avatar May 20 '19 18:05 tomkerkhove

Awesome. Let's see if we can add it as an alias and will call it out in the docs as such as well.

https://github.com/kedacore/keda/issues/14

jeffhollan avatar May 20 '19 18:05 jeffhollan

@jeffhollan would you mind adding it to the Scaler Prio wiki please? Thanks!

tomkerkhove avatar May 20 '19 18:05 tomkerkhove

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Nov 27 '21 08:11 stale[bot]

I have just seen that the feature has been removed from Planned (Committed). Any specific issue? or just about priorities/capacity? (if so, I cannot promise anything in the short term but I can maybe bring my small and humble contribution during the summer).

jonmikeli avatar May 05 '22 10:05 jonmikeli

No particular reason other than moving from GitHub Projects to GitHub Projects (preview) :)

Always happy to hear about customer scenarios to help prior or receive contributions though.

tomkerkhove avatar May 05 '22 11:05 tomkerkhove

@tomkerkhove @jeffhollan Adding to the alias discussion - I've observed there is a difference in connection strings obtained for the Event hub and IoT hub through portal and the event hub scalar code doesn't seem to handle the format used in IoT hub.

EvenHub connection string - Endpoint=sb://<NamespaceName>.servicebus.windows.net/;SharedAccessKeyName=<KeyName>;SharedAccessKey=<KeyValue> IoT hub connection string - HostName=<HubName>.azure-devices.net;<KeyName>;SharedAccessKey=<KeyValue>

Having said that, do we have an azure sdk that can be used if we create a new IoT scalar? I'm doubtful about leveraging https://github.com/Azure/azure-sdk-for-go for IoT Hub.

sushmithavangala avatar Jun 01 '22 10:06 sushmithavangala

Then we are out of luck I think - Either we go with an external scaler similar to the Cosmos DB Changefeed or we put it in the fridge until it's there.

tomkerkhove avatar Jun 01 '22 11:06 tomkerkhove

Then we are out of luck I think - Either we go with an external scaler similar to the Cosmos DB Changefeed or we put it in the fridge until it's there.

@raorugan any thoughts?

sushmithavangala avatar Jun 06 '22 05:06 sushmithavangala

I think it will be good to get the roadmap of IOT hub if they have plans to enable Azure SDK for go lang if possible

raorugan avatar Jun 07 '22 06:06 raorugan

Feel free to open an issue there and mention this issue so that they are linked, but for now we can't add it to KEDA core then.

tomkerkhove avatar Jun 07 '22 06:06 tomkerkhove

@tomkerkhove @jeffhollan Adding to the alias discussion - I've observed there is a difference in connection strings obtained for the Event hub and IoT hub through portal and the event hub scalar code doesn't seem to handle the format used in IoT hub.

EvenHub connection string - Endpoint=sb://.servicebus.windows.net/;SharedAccessKeyName=;SharedAccessKey= IoT hub connection string - HostName=.azure-devices.net;;SharedAccessKey=

Having said that, do we have an azure sdk that can be used if we create a new IoT scalar? I'm doubtful about leveraging https://github.com/Azure/azure-sdk-for-go for IoT Hub.

@SushmithaVReddy there is a eventhub built-in endpoints in Hub settings in IotHub. it is the same format with the eventhub connection string. but if i add identity role permission to iothub not working for access to it's built-in eventhub.

AiHaibara avatar Feb 29 '24 11:02 AiHaibara