microservices-patterns / ftgo-application

Example code for the book Microservice patterns
Other
3.35k stars 1.29k forks source link

Accounting Service "received_messages" - no entry added on new Consumer creation #126

Open asn25 opened 3 years ago

asn25 commented 3 years ago

Hi,

if I create new consumer in Consumer Service, there is no entry added to "received_messages" table in Accounting Service. The domain event is subscribed to and consumed successfully by Accounting Service (new Account is created).

In contrast, when you create a new Restaurant in Restaurant service, then an entry is added to "received_messages" table on the Order Service side.

Is this difference connected with the fact that Accounting service is using Event Sourcing?

My expectation is that is should use "received_messages" inbox in the same way for discarding of duplicate incoming messages, so upon receiving of domain event in Accounting Service, it should insert an entry into this table.

Thanks.