Re:Emissary, a fast open-source Java messaging library
by azornathogron on Monday January 26, 2026 @04:46AM
(#46763612)
Assuming that you are the author of Emissary, this could be a Show HN, I think.
Re:Emissary, a fast open-source Java messaging library
by RestartKernel on Monday January 26, 2026 @04:52AM
(#46763649)
> To post, submit a story whose title begins with "Show HN".
I always enjoy how low-tech this website is. Not necessarily great UX, but it's quaint.
Re:Emissary, a fast open-source Java messaging library
by MarkLowenstein on Monday January 26, 2026 @07:51AM
(#46765025)
This is the only site I go to without fear of having to wait for page load.
Re:Emissary, a fast open-source Java messaging library
by pragmatick on Tuesday January 27, 2026 @12:37AM
(#46775924)
And the only one I can think of where I can't post my comment using Ctrl+Enter.
Re:Emissary, a fast open-source Java messaging library
by jeyjeyemem on Monday January 26, 2026 @03:30PM
(#46771069)
Yes, I am the author. I didn't know that, I'll give it a try. Thank you for the tip!
Re:Emissary, a fast open-source Java messaging library
by throw_away_623 on Monday January 26, 2026 @09:17AM
(#46765902)
Are you planning to add persistent events as well, so that events are not lost due to crashes
Re:Emissary, a fast open-source Java messaging library
by jeyjeyemem on Monday January 26, 2026 @03:45PM
(#46771268)
This a frequently requested feature. At the moment, it only handles in-process messages but allowing for persistent events is definitely in the roadmap. It's not built-in right now, but this can be achieved by implementing custom RequestHandlerInvocationStrategy and EventHandlerInvocationStrategy. For example, one can implement an invocation strategy to serialize and send certain events to Kafka, queue, or your DB of choice.
See: https://github.com/joel-jeremy/emissary/blob/main/emissary-c...
Here are the default invocation strategies built-in right now: https://github.com/joel-jeremy/emissary/tree/main/emissary-c...
Emissary aims to take advantage of the simplicity of using the annotations for handlers (e.g. @RequestHandler/@EventHandler) without the drawbacks of reflection (slow).
What differentiates Emissary from other messaging/dispatch libraries? It takes advantage of java.lang.invoke.LambdaMetafactory to avoid the cost of invoking methods reflectively. This results in performance close to directly invoking the request handler and event handler methods.
~ 1000% more throughput compared to other similar libraries (Spring's ApplicationEventPublisher, Pipelinr, EventBus) ~ 90% faster compared to other similar libraries (Spring's ApplicationEventPublisher, Pipelinr, EventBus)
Benchmarks found on the GitHub repository: https://github.com/joel-jeremy/emissary?tab=readme-ov-file#p...