Hi,
We're using this example in our project (built as micro services).
Based to your example.
One subscriber received but another didn't when we used publish to dispatch an event.
setTimeout(() => {
this.bus.publish('user.created', payload);
}, 1000);
user-service:
this.bus.subscribe('user.created', (event) => {
// event arrives.
});
person-service
this.bus.subscribe('user.created', (event) => {
// event doesn't arrive
});
We saw that you use setInterval() when you publish message.
Is this required? If so , can you please explain why?
Thank you very much.
Hi,
We're using this example in our project (built as micro services).
Based to your example.
One subscriber received but another didn't when we used publish to dispatch an event.
user-service:
person-service
We saw that you use setInterval() when you publish message.
Is this required? If so , can you please explain why?
Thank you very much.