Results 1 to 3 of 3

Thread: Multithreaded and Non database oriented

  1. #1
    Join Date
    Jul 2010
    Location
    USA
    Posts
    43

    Question Multithreaded and Non database oriented

    Hi
    I have been working on Spring batch from last 2 years.

    In my current project I have different requirement to use multithreaded approach of Spring batch.
    Process need to read records from a 200GB file and proces records and write records to different files based on the criteria in which they fall under.

    One more thing is we do not need to access database. So can I use InMemoryRepository and AsynchronousTaskExecutor?

    Can someone suggest me the best approach for dealing with this requirement.

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,695

    Default

    It depends.. Do you want to store the state of your job, if your job fails do oyou want to know why and where it stopped. If that is the case you also need a database, if you use the InMemoryRepository that information is all lost...
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  3. #3
    Join Date
    Jun 2005
    Posts
    4,241

    Default

    The MapJobRepositoryFactoryBean is allegedly thread safe from Batch 2.1, but in production I would use an in-memory relational database (H2 is probably the most robust).

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •