Spring Batch Cluster Environment - Failover

Question: What is the fault tolerance strategy that the spring package supports? It is necessary to focus on the use of resources, the failover mechanism. Any suggestions?

Usecase - spring, you must run the package to read the file (which will be placed on the server by another application) from the server and process it.

The environment is clustered. Thus, there may be several server instances that can run batch jobs, trying to read the same file upon arrival.

My thoughts. Polling can be performed to check the arrival of the file and invoke the batch job spring. Since it is grouped, we can use an active / passive strategy for polling. Other types can also be used, such as a rounded or temporary slice.

Forgive me if I do not know. I can explain if something is unclear.

+5
source share
1 answer

As I understand from here

http://static.springsource.org/spring-batch/reference/html/scalability.html

the best approach would be to have only one controller and distribute the task to the cluster through one of the mechanisms provided by the spring Batch package (I think the best choice here is the remote piece).

, , spring Batch, .

+1

All Articles