Closed ujwal-setlur closed 1 year ago
Ok, I am tweaking some code, but emit is still way faster than sendToChannel
https://github.com/moleculerjs/moleculer-channels#benchmark https://github.com/moleculerjs/moleculer-channels/tree/master/benchmark
Emit will be significantly faster than sendToChannel anyway, because by design sendToChannel is a guaranteed delivery, while "emit" is send-and-forget
Thanks for the link! I didn’t notice it. I will compare the numbers. I’ll close this for now.
Do we have benchmarks of
sendToChannel
vsemit
? I see a huge performance penalty while running a load test. withemit
I can ingest and emit around 14K messages/sec, while withsendToChannel
, I can send about 300 messages/sec. I am using with context. This seems to be a very drastic difference...