An event loop waits and reacts to events. It’s so simple, but so powerful. It always fascinated me.
Here I present a multithreaded Java implementation inspired by a real world scenario. Specifically I used it to wait and react to messages coming from different Azure queues.