Giter Club home page Giter Club logo

spring-batch-remote-partitioning's Introduction

Spring Batch remote partitioning

This repo contains 2 examples for Spring Batch remote partitioning; one with Kafka and the other with AWS SQS.

The Kafka example is explained in this article: Scaling Spring Batch processing with partitioning using Kafka

The AWS SQS example is explained in this article: Spring Batch Remote Partitioning With AWS SQS

Running the examples

Both of the example projects are quite self contained so the running procedure is the same.

First of all, start the necessary infrastructure using docker-compose by running docker-compose up in the project's folder. This will start up either a Kafka cluster with Kafka UI along with a MySQL database; or for the AWS SQS case, it'll start up localstack to be able to emulate SQS locally along with a MySQL database.

Then, open 4 terminal windows for one of the projects. 3 terminals will run 3 worker instances and the 4th will run the manager to partition the data.

For the worker instances, run the following:

$ ./gradlew bootRun --args='--spring.profiles.active=worker'

For the manager instance, run the following:

$ ./gradlew bootRun --args='--spring.profiles.active=manager'

spring-batch-remote-partitioning's People

Contributors

galovics avatar

Stargazers

 avatar Muhammad Mehedi Hasan avatar M. Oly Mahmud avatar jamilxt avatar  avatar Edgar Joao avatar Xuefeng Chang avatar Ruslan avatar  avatar  avatar Augusto Darraidou avatar Ali Akbar Azizkhani avatar talipkorkmaz avatar CoderHuangxf avatar  avatar Mukundhan S avatar Guilherme avatar wangqjia avatar Yuhi Ishikura avatar  avatar Anbu Sampath avatar Tuan Nguyen avatar Hantsy Bai avatar philipz avatar  avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.