Is Spring batch in memory job repository good for production?

时间:2015-09-01 21:39:44

标签: spring-batch

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?

1 个答案:

答案 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.