Can you use in memory job repository in production if you are not looking for restarts of the job?
If yes, then does it have any impact on memory?
答案 0 :(得分:0)
No. The in memory job repository is intended for test purposes only (it says it in the documentation here: http://docs.spring.io/spring-batch/trunk/apidocs/org/springframework/batch/core/repository/support/MapJobRepositoryFactoryBean.html). For production use, we recommend an in memory database such as HSQLDB.