Tutorials are organised in 3 levels (Basic, Intermediate and Advanced).
Each tutorial is contained in a separate package containing a README.md
file that describes the tutorial and how to run it.
The org.jeasy.batch.tutorials.common
package contains classes that are common to all tutorials.
All examples use tweets data. Tweets are represented by the org.jeasy.batch.tutorials.common.Tweet
bean.
ℹ️ Prerequisites: Java 11+ && maven 3+
⬇️ Get the source code: $>git clone https://github.com/j-easy/easy-batch.git
#️⃣ Build: $>cd easy-batch && mvn install && cd easy-batch-tutorials
$>mvn exec:java -P run[tutorial name]
If you want to run tutorials from your IDE, you need to import the easy-batch
directory as a maven project in your IDE.
📜 Tutorial | ⭐ Level | 🕘 Duration | 🔗 Link |
---|---|---|---|
Hello World | basic | 2️⃣ minutes read | |
Word Count | basic | 2️⃣ minutes read | |
Transforming data from one format to another | intermediate | 5️⃣ minutes read | |
Importing data from a flat file into a database | intermediate | 5️⃣ minutes read | |
Exporting data from a database to a flat file | intermediate | 5️⃣ minutes read | |
Writing a dynamic header/footer to an output file | intermediate | 5️⃣ minutes read | |
Reading data from a REST endpoint | intermediate | 5️⃣ minutes read | |
Monitoring jobs with JMX | advanced | 5️⃣ minutes read | |
Scheduling jobs with Quartz | advanced | 5️⃣ minutes read | |
Configuring jobs with Spring | advanced | 5️⃣ minutes read | |
Writing a custom listener to contribute custom metrics | advanced | 🔟 minutes read | |
Writing a custom listener to restart a failed job | advanced | 🔟 minutes read | |
Writing a custom reader to support multi-line records | advanced | 🔟 minutes read | |
Skipping bad records with batch scanning on write failure | advanced | 🔟 minutes read | |
Processing data in parallel with multiple worker jobs | advanced | 🔟 minutes read | |
Processing data asynchronously using a JMS queue | advanced | 🔟 minutes read | |
Processing files in parallel based on their content | advanced | 🔟 minutes read |