-
1. Re: Dedicated AMQP Versus using @Async(Task Execution and scheduling)
clebert.suconic Aug 13, 2014 8:03 PM (in response to gangavh)1 of 1 people found this helpfulI'm not sure what's your question here. It sounds a consulting gig that would need some thought... you probably have all the variables to make a decision... but i don't know how to help you on such architectural decision without knowing your constraints.
-
2. Re: Dedicated AMQP Versus using @Async(Task Execution and scheduling)
gangavh Aug 13, 2014 10:18 PM (in response to clebert.suconic)Hi Clebert,
Thanks for response.
My question is more on whether to use HornetQ or use @Async which provide similar functionality. Concern is on scalability, performance.
Use case is
a. REST service gets called for sending email. Load expected is 70TPS and growing
b. REST service calls service layer to persist requests
c. Service layer will either put message in Queue or call Async processing and return immediately informing request is under process
We are brainstorming on to use either @Async or use dedicated AMQP or AMQP will be overkill.
Thanks in advance
-
3. Re: Dedicated AMQP Versus using @Async(Task Execution and scheduling)
jbertram Aug 14, 2014 10:23 AM (in response to gangavh)1 of 1 people found this helpfulAs Clebert indicated, the questions your asking lend themselves more to a consulting engagement than a community forum. You simply aren't providing enough detail to receive an educated response. As far as I can see, there's lots of other considerations to think about, e.g.:
- What will the asynchronous task (whether trigger via Spring or HornetQ) actually be doing? Will it be doing transactional work involving multiple resources (i.e. XA)?
- What should happen in the case of a failure? Should the task be retried?
- Do you need high availability or clustering functionality?
- Why are you considering AMQP? Why not JMS or simply HornetQ core?
- Do the REST end-point and the asynchronous task need to execute in the same JVM or can/should they be separated (e.g. for load-balancing)?
That's just the stuff off the top of my head.
-
4. Re: Dedicated AMQP Versus using @Async(Task Execution and scheduling)
gangavh Aug 14, 2014 12:39 PM (in response to jbertram)Hi,
Thanks for the info, appreciate your consulting level guidance.
Thanks,
Ganga