shop-golang-microservices icon indicating copy to clipboard operation
shop-golang-microservices copied to clipboard

Problem with consuming the ProductCreated event in inventory_service

Open alexandremsouza1 opened this issue 11 months ago • 1 comments

Hello,

I'm using your project as a study due to the organization and of all the ones I analyzed, yours is the best.

However, there is this problem that when trying to create a product, inventory receives the event and processes it, but when trying to create another product afterwards it does nothing.

I already tried to fix it but I couldn't.

Could you help me, please?

alexandremsouza1 avatar Mar 03 '24 04:03 alexandremsouza1

Hello,

I'm using your project as a study due to the organization and of all the ones I analyzed, yours is the best.

However, there is this problem that when trying to create a product, inventory receives the event and processes it, but when trying to create another product afterwards it does nothing.

I already tried to fix it but I couldn't.

Could you help me, please?

Hi, Thanks for reaching me out. I think it's related to RabbitMQ mechanism and I think we have a bug in RabbitMQ consumer in building block. I use topic exchange for deliver message to consumer and my guess there is a problem here. You can try it here for finding bug and maybe use another exchange like fanout fix the problem. Unfortunately, currently I am a little busy and don't have time to fix the problem now. Feel free to contribute this problem :)

meysamhadeli avatar Mar 03 '24 18:03 meysamhadeli