I would like to have a long-running azure function per deviceId and hopefully using Azure functions as I want to minimise the infrastructure I have to manage.
Does anyone know whether this pattern is possible?

I have checked DurableFunctions but I don't think I could route all the messages with the same DeviceID to a function?

It would be ok if the function is rebooted every 5 minutes.

Of course, the alternative could be to use Service Fabric Reliable actors (potentially with service mesh once it becomes available) , but I would like to keep the solution as simple as possitve, hence why my focus on Functions.