The Temporary Queue Client lets you create lightweight, temporary queues that are deleted automatically when they are no longer in use. You can use the Temporary Queue Client for use in common messaging patterns such as Request-Response.
This library provides two complementary interfaces for two-way communication through queues:
AmazonSQSRequesterinterface lets message producers send a message and wait for the corresponding response message.
AmazonSQSResponderinterface lets message consumers send response messages.
To implement this pattern efficiently, the
AmazonSQSRequester client creates temporary queues that hold response messages. The temporary queue architecture scales to an arbitrary number of message producer runtimes. There is no risk of response messages being consumed by the wrong client.
Temporary queues are also automatically deleted if the clients that created them die ungracefully. By default, these internal queues are created with the queue name prefix
__RequesterClientQueues__. You can configure this prefix when you build the requester client.
<dependency> <groupId>com.amazonaws</groupId> <artifactId>amazon-sqs-java-temporary-queues-client</artifactId> <version>1.2.2</version> <type>jar</type> </dependency>
This library is licensed under the Apache 2.0 License.