java - JMS Alternative -


i reading blog, , 1 of points 'if you're using queues, messed up', in context of jms.

i thinking, need jms? simple alternative be, if need asynchronously, why not put job request in table somewhere, , have process(es) polling db every x time units looking new jobs?

this approach simpler jms, easy understand, , removes dependency application.

what losing if use alternative described? perhaps 1 loses possibility of using jmx able administer things, if job 'queue' fed off table, can write simple code 'manage' processing.

i reading blog, , 1 of points 'if you're using queues, messed up', in context of jms.

this wrong.

you might mess choosing use queue when it's not appropriate, if jms fine choice.

i'd more discerning read on internet if you. sounds me author liked making inflammatory statements spice blog , bump google analytics statistics. it's 1 person's opinion, nothing more.

the polling solution more complex, wasteful of cpu cycles, , not real time in opinion.

you can use executor or futuretask if want asynchronous processing. reasonable alternatives queue if asynch need.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -