Skip to content

A simple spring boot prototype app that utilizes an h2 DB and the Java executor service to process items in a job.

Notifications You must be signed in to change notification settings

jcmillett/spring-boot-threading

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot Threading

Description

This is a prototype for experimenting with spring boot, and the Executor framework in Java for multi-threading.

This application provides some REST endpoints for creating and monitoring jobs which contain items that need to be processed. The job and item data is stored in the h2 database. Then a scheduled process runs every 30 seconds to check for jobs that need processing. When a new job is found, all items within that job are submitted to a thread pool for processing.

This example could be expanded to provide the ability to clear out items that didn't process successfully. Maybe with a retry system.

About

A simple spring boot prototype app that utilizes an h2 DB and the Java executor service to process items in a job.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages