in Education by
I have a Java system that receives messages over the network in a proprietary binary format which it needs to decode, process and do something with. The messages have an implied priority depending on their payload. I'd like to use the semantics of a priority-queue in the system with separate consumer threads reading the queue. The problem, is that once the system has accepted a message over the network, it must guarantee to handle it eventually, even if the system went down between receipt and processing. As such I'd like to back my priority-queue with persistence. I'm looking for light-weight ways to achieve this in Java inside a web container process as against using a fully blown ESB or similar. Some additional info: we are in the Amazon cloud and JMS is not an option in our environment unfortunately. We could use SQS, but this doesn't support a priority concept and requires polling which is not really ideal. Thanks JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
SQS uses long polling, so it adds very low overhead and practically no latency. For priorities you can use multiple queues. One for each priority.

Related questions

0 votes
    I have a Java system that receives messages over the network in a proprietary binary format which it needs ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 12, 2022 in Education by JackTerrance
0 votes
    In my Mongo Helm Chart, I am using PVC for Persistence volume. I am using the chart to install ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 2, 2022 in Education by JackTerrance
0 votes
    In my Mongo Helm Chart, I am using PVC for Persistence volume. I am using the chart to install ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 27, 2022 in Education by JackTerrance
0 votes
    new to play and just trying to follow the video on: http://www.playframework.org/ I'm coming so ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 2, 2022 in Education by JackTerrance
0 votes
    Calling javax.persistence.criteria.Path.get(String name) fails for the simple class hierarchy detailed below. The ... for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jan 15, 2022 in Education by JackTerrance
0 votes
    Which is the best way for persistence in Redis?...
asked Apr 12, 2021 in Technology by JackTerrance
0 votes
    Which is the default persistence mode in Redis?...
asked Apr 12, 2021 in Technology by JackTerrance
0 votes
    What are the key components of persistence API in EJB?...
asked Nov 7, 2020 in Technology by JackTerrance
0 votes
    I have 2 JMS queues and my application subscribes to both of them with Jms.messageDrivenChannelAdapter(...) ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 30, 2022 in Education by JackTerrance
0 votes
    I am trying to use celery to manage tasks. The problem i am into now, that i have many minor ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 19, 2022 in Education by JackTerrance
0 votes
    Differentiate between the Windows Azure bus queues and Windows Azure queues?...
asked Dec 27, 2020 in Technology by JackTerrance
0 votes
    What is the use of Work Queues in Blue-prism?...
asked Nov 5, 2020 in Technology by JackTerrance
0 votes
    Are citizens of a particular country given priority for being Secretary-General? Please answer the above question....
asked Aug 10, 2022 in Education by JackTerrance
0 votes
    I have seen similar questions and read a lot of the answers. One would think that I would know it ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 7, 2022 in Education by JackTerrance
...