I'm not sure Lambda is the best tool for that, but I've done stuff in that area @lucasbradstreet
@mj_langford we agree. We’re considering working on a feature that would move the complex event processing logic to an external service, and then leave Lambda purely for processing the final decisions (i.e. side effects)
Amazon Step Functions do that kind of thing btw
(depending on how complex your patterns are)
We looked into them, and they appeared to be more useful for workflows with action dependencies, whereas we are thinking about use cases like: if event type A and event type B over threshold y arrive, perform a side effect. These kinds of data dependency questions seem pretty hard to do with step functions
Does that match your understanding?
Oh, yeah, that kind of thing is more of a queue problem IME
and that's not Step Functions thing
Great, that’s basically what we think too, and once you have a queue then you need to keep some state somewhere, so you can decide whether the events you’ve processed have met the criteria.
Thanks for your thoughts