Java 生产中需要的背景工作框架
我们有一个需求,我们必须运行许多异步后台进程,这些进程访问DBs、Kafka队列等。到目前为止,我们正在使用Spring批处理和Tomcat(爆炸战争)来实现这一需求。然而,我们面临一些我无法用SpringBatch解决的问题。我正在考虑使用其他框架,但找不到任何解决我所有问题的框架 如果知道是否存在解决以下问题的框架,那就太好了:Java 生产中需要的背景工作框架,java,spring,tomcat,spring-batch,batch-processing,Java,Spring,Tomcat,Spring Batch,Batch Processing,我们有一个需求,我们必须运行许多异步后台进程,这些进程访问DBs、Kafka队列等。到目前为止,我们正在使用Spring批处理和Tomcat(爆炸战争)来实现这一需求。然而,我们面临一些我无法用SpringBatch解决的问题。我正在考虑使用其他框架,但找不到任何解决我所有问题的框架 如果知道是否存在解决以下问题的框架,那就太好了: 由于Spring批处理在一个Tomcat容器(1个java进程)中运行,因此任何作业/步骤中的任何小更新都将导致重新启动Tomcat服务器。这会导致所有正在运行的作
Sending with timeouts
When sending a message with a reply handler you can specify a timeout in the DeliveryOptions.
If a reply is not received within that time, the reply handler will be called with a failure.
The default timeout is 30 seconds.
Send Failures
Message sends can fail for other reasons, including:
There are no handlers available to send the message to
The recipient has explicitly failed the message using fail
In all cases the reply handler will be called with the specific failure.
编辑还有其他框架可以在java中提供微服务。是其中之一,但我不能再多说了 你看了吗?当我使用它的时候,它还没有准备好生产,但也许现在你需要看看这个框架吗?@stalet是的,我确实看过了。它在尝试运行作业的不同调度程序之间提供同步。然而,在文档中明确表示“不能”在不同的机器上运行谢谢你的信息!让我看看,然后回来。我需要一个用户界面。有可能将其与Spring批处理集成吗?我不熟悉Spring,但有一个官方示例和一些类似的文章
Sending with timeouts
When sending a message with a reply handler you can specify a timeout in the DeliveryOptions.
If a reply is not received within that time, the reply handler will be called with a failure.
The default timeout is 30 seconds.
Send Failures
Message sends can fail for other reasons, including:
There are no handlers available to send the message to
The recipient has explicitly failed the message using fail
In all cases the reply handler will be called with the specific failure.