{"id":13831966,"url":"https://github.com/j-easy/easy-batch","last_synced_at":"2025-12-16T20:45:10.280Z","repository":{"id":4274268,"uuid":"5402462","full_name":"j-easy/easy-batch","owner":"j-easy","description":"The simple, stupid batch framework for Java","archived":false,"fork":false,"pushed_at":"2023-03-20T21:49:34.000Z","size":27091,"stargazers_count":621,"open_issues_count":17,"forks_count":199,"subscribers_count":46,"default_branch":"master","last_synced_at":"2025-04-19T08:16:51.154Z","etag":null,"topics":["batch","batch-processing","java"],"latest_commit_sha":null,"homepage":"https://github.com/j-easy/easy-batch/wiki","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/j-easy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2012-08-13T17:49:51.000Z","updated_at":"2025-04-16T14:58:53.000Z","dependencies_parsed_at":"2023-07-06T11:16:29.682Z","dependency_job_id":null,"html_url":"https://github.com/j-easy/easy-batch","commit_stats":{"total_commits":1906,"total_committers":25,"mean_commits":76.24,"dds":0.3982161594963274,"last_synced_commit":"647ce811fc1ada476ceef4f48a2f8523367a4892"},"previous_names":["benas/cb4j","benas/easy-batch","easybatch/easybatch-framework"],"tags_count":27,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j-easy%2Feasy-batch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j-easy%2Feasy-batch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j-easy%2Feasy-batch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j-easy%2Feasy-batch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/j-easy","download_url":"https://codeload.github.com/j-easy/easy-batch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254453651,"owners_count":22073617,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["batch","batch-processing","java"],"created_at":"2024-08-04T10:01:45.947Z","updated_at":"2025-12-16T20:45:10.214Z","avatar_url":"https://github.com/j-easy.png","language":"Java","readme":"***\n\n\u003cdiv align=\"center\"\u003e\n    \u003cb\u003e\u003cem\u003eEasy Batch\u003c/em\u003e\u003c/b\u003e\u003cbr\u003e\n    The simple, stupid batch framework for Java\u0026trade;\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n[![MIT license](http://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat)](http://opensource.org/licenses/MIT)\n[![Build Status](https://github.com/j-easy/easy-batch/actions/workflows/build.yml/badge.svg)](https://github.com/j-easy/easy-batch/actions)\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.jeasy/easy-batch-core/badge.svg?style=flat)](http://search.maven.org/#artifactdetails|org.jeasy|easy-batch-core|7.0.2|)\n[![Javadoc](https://www.javadoc.io/badge/org.jeasy/easy-batch-core.svg)](http://www.javadoc.io/doc/org.jeasy/easy-batch-core)\n[![Project status](https://img.shields.io/badge/Project%20status-Maintenance-orange.svg)](https://img.shields.io/badge/Project%20status-Maintenance-orange.svg)\n\n\u003c/div\u003e\n\n***\n\n## Project status\n\nAs of November 18, 2020, Easy Batch is in maintenance mode. This means only bug fixes will be addressed from now on.\nVersion 7.0.x is the only supported version.\n\n## Latest news\n\n* 2020-03-14: [Version 7.0.2 is out](https://github.com/j-easy/easy-batch/releases) with a minor bug fix and a number of dependency updates.\n\n# What is Easy Batch?\n\nEasy Batch is a framework that aims at simplifying batch processing with Java. It was **specifically** designed for simple, single-task ETL jobs.\nWriting batch applications requires a **lot** of boilerplate code: reading, writing, filtering, parsing and validating data, logging, reporting to name a few..\nThe idea is to free you from these tedious tasks and let you focus on your batch application's logic.\n\n# How does it work?\n\nEasy Batch jobs are simple processing pipelines. Records are read in sequence from a data source, processed in pipeline and written in batches to a data sink:\n\n![batch processing](https://raw.githubusercontent.com/wiki/j-easy/easy-batch/images/batch-processing.png)\n\nThe framework provides the `Record` and `Batch` APIs to abstract data format and process records in a consistent way regardless of the data source/sink type.\n\nLet's see a quick example. Suppose you have the following `tweets.csv` file:\n\n```\nid,user,message\n1,foo,hello\n2,bar,@foo hi!\n```\n\nand you want to transform these tweets to XML format. Here is how you can do that with Easy Batch:\n\n```java\nPath inputFile = Paths.get(\"tweets.csv\");\nPath outputFile = Paths.get(\"tweets.xml\");\nJob job = new JobBuilder\u003cString, String\u003e()\n         .reader(new FlatFileRecordReader(inputFile))\n         .filter(new HeaderRecordFilter\u003c\u003e())\n         .mapper(new DelimitedRecordMapper\u003c\u003e(Tweet.class, \"id\", \"user\", \"message\"))\n         .marshaller(new XmlRecordMarshaller\u003c\u003e(Tweet.class))\n         .writer(new FileRecordWriter(outputFile))\n         .batchSize(10)\n         .build();\n\nJobExecutor jobExecutor = new JobExecutor();\nJobReport report = jobExecutor.execute(job);\njobExecutor.shutdown();\n```\n\nThis example creates a job that:\n\n* reads records one by one from the input file `tweets.csv`\n* filters the header record\n* maps each record to an instance of the `Tweet` bean\n* marshals the tweet to XML format\n* and finally writes XML records in batches of 10 to the output file `tweets.xml`\n\nAt the end of execution, you get a report with statistics and metrics about the job run (Execution time, number of errors, etc).\nAll the boilerplate code of resources I/O, iterating through the data source, filtering and parsing records, mapping data to the domain object `Tweet`, writing output and reporting\nis handled by Easy Batch. Your code becomes declarative, intuitive, easy to read, understand, test and maintain.\n \n ## Quick start\n \nAdd the following dependency to your project and you are ready to go:\n \n ```xml\n \u003cdependency\u003e\n     \u003cgroupId\u003eorg.jeasy\u003c/groupId\u003e\n     \u003cartifactId\u003eeasy-batch-core\u003c/artifactId\u003e\n     \u003cversion\u003e7.0.2\u003c/version\u003e\n \u003c/dependency\u003e\n```\n\nYou can also generate a quick start project with the following command:\n\n```\n$\u003emvn archetype:generate \\\n      -DarchetypeGroupId=org.jeasy \\\n      -DarchetypeArtifactId=easy-batch-archetype \\\n      -DarchetypeVersion=7.0.2\n```\n\nFor more details, please check the [Getting started](https://github.com/j-easy/easy-batch/wiki/getting-started) guide.\n\n## Presentations, articles \u0026 blog posts\n\n- :movie_camera: [Introduction to Easy Batch: the simple, stupid batch processing framework for Java](https://speakerdeck.com/benas/easy-batch)\n- :newspaper: [First batch job on Podcastpedia.org using Easy Batch](http://www.codingpedia.org/ama/first-batch-job-on-podcastpedia-org-with-easybatch/)\n- :newspaper: [EasyBatch, les batchs en JAVA tout simplement (in french)](https://blog.sodifrance.fr/easybatch-les-batchs-en-java-tout-simplement/)\n- :memo: [Easy Batch vs Spring Batch: Feature comparison](https://github.com/benas/easy-batch-vs-spring-batch/issues/1)\n- :memo: [Easy Batch vs Spring Batch: Performance comparison](https://github.com/benas/easy-batch-vs-spring-batch/issues/2)\n\n## Current versions\n\n#### Stable:\n\nThe current stable version is [v7.0.2](http://search.maven.org/#artifactdetails|org.jeasy|easy-batch-core|7.0.2|) | [documentation](https://github.com/j-easy/easy-batch/wiki) | [tutorials](https://github.com/j-easy/easy-batch/tree/easy-batch-7.0.2/easy-batch-tutorials) | [javadoc](http://javadoc.io/doc/org.jeasy/easy-batch-core/7.0.2)\n\n#### Development:\n\nThe current development version is 7.0.3-SNAPSHOT: [![Build Status](https://github.com/j-easy/easy-batch/workflows/Java%20CI/badge.svg)](https://github.com/j-easy/easy-batch/actions)\n\nIf you want to import a snapshot version, please check the [Getting started](https://github.com/j-easy/easy-batch/wiki/getting-started#use-a-snapshot-version) guide.\n\n## Contribution\n\nYou are welcome to contribute to the project with pull requests on GitHub.\nPlease note that Easy Batch is in [maintenance mode](https://github.com/j-easy/easy-batch#project-status),\nwhich means only pull requests for bug fixes will be considered.\n\nIf you believe you found a bug or have any question, please use the [issue tracker](https://github.com/j-easy/easy-batch/issues).\n\n## Awesome contributors\n\n* [ammachado](https://github.com/ammachado)\n* [anandhi](https://github.com/anandhi)\n* [AussieGuy0](https://github.com/AussieGuy0)\n* [AymanDF](https://github.com/AymanDF)\n* [chsfleury](https://github.com/chsfleury)\n* [chellan](https://github.com/chellan)\n* [DanieleS82](https://github.com/DanieleS82)\n* [gs-spadmanabhan](https://github.com/gs-spadmanabhan)\n* [imranrajjad](https://github.com/imranrajjad)\n* [ipropper](https://github.com/ipropper)\n* [IvanAtanasov89](https://github.com/IvanAtanasov89)\n* [jawher](https://github.com/jawher)\n* [jlcanibe](https://github.com/jlcanibe)\n* [MALPI](https://github.com/MALPI)\n* [marcosvpcortes](https://github.com/marcosvpcortes)\n* [natlantisprog](https://github.com/natlantisprog)\n* [nicopatch](https://github.com/nicopatch)\n* [nihed](https://github.com/nihed)\n* [PascalSchumacher](https://github.com/PascalSchumacher)\n* [seseso](https://github.com/seseso)\n* [Toilal](https://github.com/Toilal)\n* [xenji](https://github.com/xenji)\n* [verdi8](https://github.com/verdi8)\n\nThank you all for your contributions!\n\n## Who is using Easy Batch?\n\nEasy Batch has been successfully used in production in a number of companies which I ([@benas](https://github.com/benas)) am not allowed to mention.\nThat said, there are some companies which publicly mention that they use Easy Batch:\n\n* [Splunk](https://docs.splunk.com/Documentation/DBX/3.2.0/ReleaseNotes/easybatch)\n* [DeepData](https://deepdata-ltd.github.io/tenderbase/#/ted-xml-importer?id=implementation)\n\nYou can also find some feedback from the community about the project in the [Testimonials](http://www.jeasy.org/#testimonials) section.\n\n## Credits\n\n![YourKit Java Profiler](https://www.yourkit.com/images/yklogo.png)\n\nMany thanks to [YourKit, LLC](https://www.yourkit.com/) for providing a free license of [YourKit Java Profiler](https://www.yourkit.com/java/profiler/index.jsp) to support the development of Easy Batch.\n\n## License\n\nEasy Batch is released under the terms of the [![MIT license](http://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat)](http://opensource.org/licenses/MIT).\n\n```\nThe MIT License (MIT)\n\nCopyright (c) 2021 Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n```\n","funding_links":[],"categories":["Projects","Java","项目","批处理框架"],"sub_categories":["Job Scheduling","作业调度"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj-easy%2Feasy-batch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fj-easy%2Feasy-batch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj-easy%2Feasy-batch/lists"}