• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Frits Walraven
Bartenders:
  • Carey Brown
  • salvin francis
  • Claude Moore

SQS Asynchronous implementation with a Synchronous wait  RSS feed

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've just made an implementation using queues and I need to get some feedback to see if the solution I've taken is reliable...

I created a sqs implementation to replace a rest call, in this way, i won't loose any rest request, so, i insert requests in a queue, all that happens next is totally asynchronous, so the application send a message to a queue and imediately needs to wait a response which is inserted in another queue, but i need that wait to be synchronous, as the user need to wait an answer...

So to achieve that, after the app send the request message to the queue, it gets into a while true which continuosly reads the response queue, the wait is for 30 secs max, now it works, but i need to know what do you guys think of this approach.
 
I do some of my very best work in water. Like this tiny ad:
Create Edit Print & Convert PDF Using Free API with Java
https://coderanch.com/wiki/703735/Create-Convert-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!