Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iammahesh123/spring-cloud-task-demo
This project demonstrates how to use Spring Cloud Task to create and manage short-lived microservices for batch processing and other tasks.
https://github.com/iammahesh123/spring-cloud-task-demo
java jpa-hibernate maven mysql-database spring-boot spring-cloud-task
Last synced: 5 days ago
JSON representation
This project demonstrates how to use Spring Cloud Task to create and manage short-lived microservices for batch processing and other tasks.
- Host: GitHub
- URL: https://github.com/iammahesh123/spring-cloud-task-demo
- Owner: iammahesh123
- Created: 2024-03-07T08:09:39.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-03-09T08:47:45.000Z (10 months ago)
- Last Synced: 2024-03-09T09:38:16.609Z (10 months ago)
- Topics: java, jpa-hibernate, maven, mysql-database, spring-boot, spring-cloud-task
- Language: Java
- Homepage:
- Size: 63.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spring Cloud Task Demo
This project demonstrates how to use Spring Cloud Task to create and manage short-lived microservices for batch processing and other tasks.
## Overview
Spring Cloud Task provides a framework for creating and executing short-lived microservices as tasks within a Spring Boot application. These tasks are typically used for batch processing, data migration, or other short-lived operations.
In this demo, we'll showcase how to create a simple Spring Cloud Task application and execute it using Spring Boot.
## Features
- Creation of a Spring Cloud Task application
- Configuration of task properties and execution parameters
- Monitoring and management of tasks using Spring Boot Admin or Actuator## Project Structure
- `src/main/java`: Contains the Java source code for the Spring Boot application.
- `src/main/resources`: Contains configuration files and static resources.
- `pom.xml`: Maven project configuration file.## Usage
1. Clone the repository:
```bash
git clone https://github.com/iammahesh123/spring-cloud-task-demo.git
```
2. Navigate to the project directory:
```bash
cd spring-security-csrf-demo
```
3. Build the project using Maven:
```bash
mvn clean package
```
4. Run the application:
```bash
mvn run
```
5. Access the application in your web browser: http://localhost:8080
6. Execute the task(s) defined in the application and observe the results.
## Configuration
- application.properties: Contains application-specific configurations.
- TaskConfiguration.java: Spring Configuration class where Spring Cloud Task properties and beans are defined.
## Dependencies
- Java 8 or higher
- Spring Boot
- Spring Cloud Task
## Contributing
Contributions are welcome. Please fork the repository, make your changes, and submit a pull request.## License
This project is licensed under the MIT License.