Using Yggdrasil behaviour you can implement the handle_event callback and accomplish comparable results as handle_message callback.
However, when I first implemented Yggdrasil, I didn't need too worry about losing messages or handling back-pressure. In that case, Broadway is superior.
Before Broadway was released, I was planning on building an adapter using GenStage in order to having those features in the adapter as well. But I never get to do it in the end. Still, it's in my TODO list.
It looks very good. Does Yggdrasil contain similar functions like Broadway handle_batch or handle_message?
Using
Yggdrasil
behaviour you can implement thehandle_event
callback and accomplish comparable results ashandle_message
callback.However, when I first implemented Yggdrasil, I didn't need too worry about losing messages or handling back-pressure. In that case, Broadway is superior.
Before Broadway was released, I was planning on building an adapter using GenStage in order to having those features in the adapter as well. But I never get to do it in the end. Still, it's in my TODO list.
Thanks for your reply Alex. That would be great, maybe someday you'll do it :-)