# How to ensure that the replier is always online throughout the whole time request messages are being

**URL:** <https://community.solace.com/t/how-to-ensure-that-the-replier-is-always-online-throughout-the-whole-time-request-messages-are-being/1383>\
**Category:** Solace Event Broker\
**Created:** [September 6, 2022, 11:39am UTC](https://community.solace.com/t/how-to-ensure-that-the-replier-is-always-online-throughout-the-whole-time-request-messages-are-being/1383 "2022-09-06T11:39:25Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yogi](https://avatars.discourse-cdn.com/v4/letter/y/46a35a/32.png) [@Yogi](https://community.solace.com/u/Yogi)\
**Post date:** [September 6, 2022, 11:39am UTC](https://community.solace.com/t/how-to-ensure-that-the-replier-is-always-online-throughout-the-whole-time-request-messages-are-being/1383/1 "2022-09-06T11:39:25Z")

</div>

Hi Team,  
Good Afternoon!!  
Functionality: Publishers —\> q/prd:durable queue—\>XYZ consumers (replier) and reply to publisher by using non-durable queue.  
Please help with me with end to end steps for below ask.  
How to ensure that the replier is always online throughout the whole time request messages are being published?  
NOTE: If a client is using a Temporary Queue and disconnects for over a minute, the Temporary Queue will be removed from the event broker, and automatically recreated once the client reconnects.&nbsp;  
Kindly suggest!!  
Thank you in advance!!

---

<div class="post-metadata">

**Author:** ![Yogi](https://avatars.discourse-cdn.com/v4/letter/y/46a35a/32.png) [@Yogi](https://community.solace.com/u/Yogi)\
**Post date:** [September 6, 2022, 11:41am UTC](https://community.solace.com/t/how-to-ensure-that-the-replier-is-always-online-throughout-the-whole-time-request-messages-are-being/1383/2 "2022-09-06T11:41:24Z")

</div>

@TomF@amackenzie@himanshu@arih@sjaak@manish Please look into it to fix this

---

<div class="post-metadata">

**Author:** ![TomF](https://yyz1.discourse-cdn.com/solace/user_avatar/community.solace.com/tomf/32/1749_2.png) [@TomF](https://community.solace.com/u/TomF)\
**Post date:** [September 6, 2022, 11:48am UTC](https://community.solace.com/t/how-to-ensure-that-the-replier-is-always-online-throughout-the-whole-time-request-messages-are-being/1383/3 "2022-09-06T11:48:36Z")

</div>

Hi @Yogi ,  
It sounds like what you want here is a synchronous reply - the replier replies as soon as it can, and the requester waits a specified amount of time before deciding that the replier is dead and taking some business logic decision based on that.  
To do that, you’d use the request/reply pattern _without the queues_ that you have in the interaction above. So you’d produce to a topic, add a correlation ID to the message headers. The replier replies on a response topic, with the correlation ID in the response. No queues are involved: the producer needs to keep track of which requests it has issued and which have been responded to.

---

<div class="post-metadata">

**Author:** ![Yogi](https://avatars.discourse-cdn.com/v4/letter/y/46a35a/32.png) [@Yogi](https://community.solace.com/u/Yogi)\
**Post date:** [September 6, 2022, 11:54am UTC](https://community.solace.com/t/how-to-ensure-that-the-replier-is-always-online-throughout-the-whole-time-request-messages-are-being/1383/4 "2022-09-06T11:54:47Z")

</div>

> [@TomF](#):
>
> Hi @Yogi ,  
> It sounds like what you want here is a synchronous reply - the replier replies as soon as it can, and the requester waits a specified amount of time before deciding that the replier is dead and taking some business logic decision based on that.  
> To do that, you’d use the request/reply pattern _without the queues_ that you have in the interaction above. So you’d produce to a topic, add a correlation ID to the message headers. The replier replies on a response topic, with the correlation ID in the response. No queues are involved: the producer needs to keep track of which requests it has issued and which have been responded to.

Hi @TomF thank you for the reply , this functionality is working fine except for 1 day report for rest other day it is working fine hence is there any solution without doing any changes?

---

<div class="post-metadata">

**Author:** ![amackenzie](https://yyz1.discourse-cdn.com/solace/user_avatar/community.solace.com/amackenzie/32/1168_2.png) [@amackenzie](https://community.solace.com/u/amackenzie)\
**Post date:** [September 6, 2022, 1:20pm UTC](https://community.solace.com/t/how-to-ensure-that-the-replier-is-always-online-throughout-the-whole-time-request-messages-are-being/1383/5 "2022-09-06T13:20:37Z")

</div>

@TomF 's response is the way to go. Synchronous request/reply with a topic is the pattern that works best for these use cases. In the Solace APIs, you will find “helper” classes/APIs that assist in this.  
For example, take a look at RequestReplyMessagePublisher (Solace PubSub+ Messaging API for Java 1.1.0 API) in the Java API.

---

<div class="post-metadata">

**Author:** ![Tamimi](https://yyz1.discourse-cdn.com/solace/user_avatar/community.solace.com/tamimi/32/2190_2.png) [@Tamimi](https://community.solace.com/u/Tamimi)\
**Post date:** [September 9, 2022, 5:53am UTC](https://community.solace.com/t/how-to-ensure-that-the-replier-is-always-online-throughout-the-whole-time-request-messages-are-being/1383/6 "2022-09-09T05:53:11Z")

</div>

And you can take a look at the requestor is implemented in Python here as well  
[solace-samples-python/patterns/direct\_requestor\_blocking.py at main · SolaceSamples/solace-samples-python · GitHub](https://github.com/SolaceSamples/solace-samples-python/blob/master/patterns/direct_requestor_blocking.py)

---

<div class="post-metadata">

**Author:** ![Yogi](https://avatars.discourse-cdn.com/v4/letter/y/46a35a/32.png) [@Yogi](https://community.solace.com/u/Yogi)\
**Post date:** [September 9, 2022, 8:46am UTC](https://community.solace.com/t/how-to-ensure-that-the-replier-is-always-online-throughout-the-whole-time-request-messages-are-being/1383/7 "2022-09-09T08:46:18Z")

</div>

Guys, without doing changes in functionality can we resolve this case???

---

<div class="post-metadata">

**Author:** ![TomF](https://yyz1.discourse-cdn.com/solace/user_avatar/community.solace.com/tomf/32/1749_2.png) [@TomF](https://community.solace.com/u/TomF)\
**Post date:** [September 9, 2022, 2:08pm UTC](https://community.solace.com/t/how-to-ensure-that-the-replier-is-always-online-throughout-the-whole-time-request-messages-are-being/1383/8 "2022-09-09T14:08:26Z")

</div>

Hi @yogi,  
Sorry, if you don’t change anything, nothing will change…

---

<div class="post-metadata">

**Author:** ![Yogi](https://avatars.discourse-cdn.com/v4/letter/y/46a35a/32.png) [@Yogi](https://community.solace.com/u/Yogi)\
**Post date:** [September 12, 2022, 5:46am UTC](https://community.solace.com/t/how-to-ensure-that-the-replier-is-always-online-throughout-the-whole-time-request-messages-are-being/1383/9 "2022-09-12T05:46:56Z")

</div>

> [@Yogi](#):
>
> @TOMF then how come this functionality were working since long time???

@TomF then how come this functionality were working since long time???

---

<div class="post-metadata">

**Author:** ![TomF](https://yyz1.discourse-cdn.com/solace/user_avatar/community.solace.com/tomf/32/1749_2.png) [@TomF](https://community.solace.com/u/TomF)\
**Post date:** [September 12, 2022, 8:44am UTC](https://community.solace.com/t/how-to-ensure-that-the-replier-is-always-online-throughout-the-whole-time-request-messages-are-being/1383/10 "2022-09-12T08:44:49Z")

</div>

Hi @Yogi ,  
There’s clearly something I don’t understand about what you’re trying to do and what you have already, sorry about that. It sounds like something has changed that was working before?
