Availability of SQS Temporary and Virtual Queues in Languages Other Than Java.

0

Several years ago AWS introduced temporary and virtual queues and put out a Java library. I'd like to implement this in PHP and Golang but it is not available. Is AWS planning to support virtual queues in these languages? If so, when?

Is there a way to use virtual queues in these languages without a library/SDK?

Jackson
질문됨 2년 전1754회 조회
1개 답변
0

Hello,

I understand that you would like to implement Temporary or Virtual queue using PHP and Golang. Our available documentation provides Java library to help you create lightweight Temporary queue.

https://github.com/awslabs/amazon-sqs-java-temporary-queues-client

Java library is just an abstraction layer to handle the underlying implementation that provides two interfaces:  AmazonSQSRequester and AmazonSQSResponder for two-way communication through queues. At this time, we only have Java library that supports this implementation.

I have raised a feature request with our service team on your behalf, to provide AWS solution for Temporary queue in Golang and PHP. While I am unable to comment on if/when this feature may get released, I request you to keep an eye on our What's New (https://aws.amazon.com/new/) and Blog (https://aws.amazon.com/blogs/aws/) pages for any new feature announcements.

Here is an existing public request for Golang implementation: https://github.com/awslabs/amazon-sqs-java-temporary-queues-client/issues/31

Having said that, you can use Java Temporary Queue Client example to re-implement the logic in any other language of your choice, without using SDK or library.

The basic logic for the implementation is to create temporary or virtual queue to which you can send messages. The queue URL for virtual queue uses the format: <host queue URL>#<virtual queue name>. Your custom code will further remove the virtual queue name from virtual queue url, store virtual queue name as an attribute and sends message to host SQS queue. For ReceiveMessage, consumer polls the host queue, checks the virtual queue attribute and store the messages in respective virtual queue in memory. Finally, messages are dispatched to the listener.

https://aws.amazon.com/blogs/compute/simple-two-way-messaging-using-the-amazon-sqs-temporary-queue-client/

AWS
지원 엔지니어
Isha_K
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠