put_request/5 is an Erlang function exported by "imq" module. Sends a request message to a queue, and automatically waits for a response. This function implements the message control properties specified by put_message/5, however, the following additional fields are required in order to handle and manage the message responses correctly: •{reply_queue, string()} - queue name where the response is expected to be send. •{reply_queue_model, string()} - model name to create a temporary dynamic queue where the response is expected to be send. •{reply_timeout, integer()} - timeout set in milliseconds to wait for a response message. In case reply_queue and reply_queue_model are defined simultaneously then reply_queue has a priority. Please take into consideration that this function applies the request-response design pattern, therefore it handles only one response message per request. We highly recommend the usage of Queue-models with temporary dynamic queues for responses in order to avoid synchronization issues. |
|
|