Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.7k views
in Technique[技术] by (71.8m points)

rabbitmq - EasyNetQ Request-Response queue is not consumed by anyone

I'm working on a microservices system in which two microservices communicate with the Request-Response EasyNetQ lib pattern using a RabbitMQ broker.

But the requester service doesn't receive any response from rabbitmq and casue an exception after a connection timeout.

Specifically when requester service (A) send request to the worker service (B), EasyNetQ lib auto generates the working queue that is named with the involved class type names, and I can see that one message is published to that queue, then the worker service (B) consume the message, do it's work and then publish the response message.

At this point EasyNetQ generate a working queue for dispatching the response message (named e.g. "easynetq.response.74906c0f-5968-460e-9e16-21100c1f582d" ), but the queue seams not be subscribed from any consumers and the requester service process generate an excpetion after a connection timeout.

I'm sure that someone knows the solution for this agonizing problem ;)

question from:https://stackoverflow.com/questions/65924236/easynetq-request-response-queue-is-not-consumed-by-anyone

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...