Replies: 1 comment
-
What do you need the parallel processing for? Did you read https://docs.spring.io/spring-batch/reference/scalability.html? I don't think that this is a spring batch specific issue.
What do you think? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Recently, I've been considering developing a batch processing system using Spring Batch. However, while looking into the Spring Batch architecture, I found a potential issue.
Each batch job depends on database records for task information. Through use cases, it was verified that one Job establishes 11 long connections to the database. So, if I'm designing a Spring Batch system where all Jobs connect to the same database, does this limit the number of Jobs that can run in parallel?
For example, if 1000 Jobs are running at the same time, would these 1000 Jobs establish 11,000 long connections to the database? This could quickly exhaust the database connection pool, leading to systemic failures.
I hope my understanding is incorrect.
Beta Was this translation helpful? Give feedback.
All reactions