Sidekiq-like queue using java tools?

こ雲淡風輕ζ 提交于 2019-12-11 17:39:13

问题


I want to have a work queue that behaves almost exactly like ruby's sidekiq(it doesn't need to use Redis, but it can - I just can't use ruby - not even Jruby). Basically I want to be able to create jobs that runs with some parameters and a worker pool executes the jobs. The workers are going to use hibernate to do some work, so I think that Spring integration could make things easier.


回答1:


Spring Integration has Redis Queue inbound and outbound channel adapters.

The inbound message-driven adapter doesn't currently support concurrency; we worked around that in Spring XD with a composite adapter that wraps a collection of RedisQueueMessageDrivenEndpoint.

Or you could use RabbitMQ; the Spring Integration adapter for it does support concurrency.

EDIT

The bus was extracted to a sub project within that repo.



来源:https://stackoverflow.com/questions/24765756/sidekiq-like-queue-using-java-tools

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!