duancashi1362 2019-08-20 06:40
浏览 206

如何同步rabbitmq消息?

I have an application(APP), and now i need to integrate with some service(SERVICE-1) which supports communication through rabbitmq(sending request to one queue and listen for response in another one), i decided to move all the rabbitmq part to separate service(SERVICE-2) and communicate with it through REST api calls.

The problem is - in APP i need a synchronous response to my call, so SERVICE-2 need somehow to synchronize those request: like it needs to get a HTTP request -> send request to rabbitmq -> wait for response from rabbitmq -> give HTTP response back in a single HTTP session.

But responses in rabbitmq may be in other order, for example i send requests with id 1,2,3 and receive back them in order 3,1,2

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 Pwm双极模式H桥驱动控制电机
    • ¥30 这是哪个作者做的宝宝起名网站
    • ¥60 版本过低apk如何修改可以兼容新的安卓系统
    • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
    • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
    • ¥50 有数据,怎么用matlab求全要素生产率
    • ¥15 TI的insta-spin例程
    • ¥15 完成下列问题完成下列问题
    • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
    • ¥15 YoloV5 第三方库的版本对照问题