Closed jedrzej-bridgemaker closed 1 year ago
I think this would be expected as the second Service A does not have a Service B registered. The only way around this is to have emitted events stored for future consumption if no registered services are listening for that event.
If the heartbeat timeout passes before Service B is restarted, then neither would send an event. Currently the first Service A is retying while Service B is unavailable which is why it does get sent after it restarts.
Hi.
I've noticed some weird behaviour when using moleculer with AMQP (rabbitMQ) and disabled balancer.
Steps to reproduce
Current Behavior
Only events from the first instance of service A, which have been emitted while service B was offline are consumed. Events from the second instance of A are ignored.
Expected Behavior
Events from both instances are treated the same way.
The problem is I can't tell what should be the expected behavior, whether both instances should push their events to the appropriate queue or neither. I'd suggest that if Service B quit unexpectedly, then both instances of service A should send their messages. Otherwise neither should.
Reproduce code snippet
Context
[This is related to #83 I think]