I guess a similar question to Can durable functions have multiple triggers?, but I'm not attempting multiple triggers per se.
My use case is that I have an EventHub which is triggering a Durable Function. I would like to listen for the Nth event containing a specific pattern in the payload for a specific id (also in the payload)
When receiving the nth event, I can easily kick off another activity, but what I can work out is how to do the stateful bit at the start?
If durable functions can't support this, what other options are there in Azure so do something similar?
event id event name
1 1 login
2 1 navigate
3 2 login
4 2 do something
5 1 do something of interest
6 1 do something of interest (again, this is what I was to trigger the activity on)
This information is currently is coming from event hub and triggering my function.