Hi - I have been trying to understand the difference between spring batch to perform multiple tasks Vs Executor f/w, which can fire parallel threads from a configured pool.
Can any one share your experiences stating the differences.
Both are different things altogether and should not be compared.
I will try to put them as simply as possible.
Executor framework comes under concurrency.
Multiple threads can be created in Java to do things parallely.
Executor framework was developed to take care of thread management. So keeping thread creation and management away from the application.
Spring batch is a framework to run multiple jobs/tasks which may be parallel/series without manual intervention.
Concurrency can be achieved in Spring batch, but it is developed to handle much more things.
You can go through the introduction of spring batch here
Thanks Tapas for quicker turn up. I have some confusion initially with spring batch, as it can spawn multiple threads for concurrency as part of it's job/task.
I have a use case where I am using spring batch for user migration, where i configured batch in such a way i am spawning 10 parallel threads for quicker user migration.
Where as with executor framework, all time i need any where multi threading test for my code, I will use EX f/w for multi and parallel threading test.
That's the origin of my confusion. If you can confinely clear my above question that really help's and clear my confusion.