https://github.com/bootcamptoprod/spring-ai-parallelization-workflow
A simple spring boot app demonstrating how to implement Parallelization Workflow pattern using Spring AI
https://github.com/bootcamptoprod/spring-ai-parallelization-workflow
ai-design-pattern ai-parallellization-pattern ai-parallellization-workflow-pattern parallelization-workflow parallelization-workflow-pattern parallellization-pattern spring-ai spring-ai-parallelization-workflow-pattern spring-ai-workflow-pattern
Last synced: 4 months ago
JSON representation
A simple spring boot app demonstrating how to implement Parallelization Workflow pattern using Spring AI
- Host: GitHub
- URL: https://github.com/bootcamptoprod/spring-ai-parallelization-workflow
- Owner: BootcampToProd
- Created: 2025-05-31T12:29:33.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-06-22T11:05:48.000Z (8 months ago)
- Last Synced: 2025-06-22T12:19:43.807Z (8 months ago)
- Topics: ai-design-pattern, ai-parallellization-pattern, ai-parallellization-workflow-pattern, parallelization-workflow, parallelization-workflow-pattern, parallellization-pattern, spring-ai, spring-ai-parallelization-workflow-pattern, spring-ai-workflow-pattern
- Language: Java
- Homepage: https://bootcamptoprod.com/spring-ai-parallelization-workflow-guide/
- Size: 6.84 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spring AI - Parallelization Workflow Pattern
This repository demonstrates the **Spring AI Parallelization Workflow Pattern**, a powerful technique for executing multiple independent LLM tasks concurrently to improve throughput and efficiency in your Java applications.
📖 **Dive Deeper**: For a complete walkthrough, detailed explanations of the Parallelization Workflow pattern, and step-by-step instructions for the example application, read our blog post.
👉 [Spring AI Parallelization Workflow: Efficient Concurrent LLM Processing](https://bootcamptoprod.com/spring-ai-parallelization-workflow-guide/)
🎥 **Visual Learning**: Prefer video tutorials? Watch our step-by-step implementation guide on YouTube.
👉 [Spring AI Parallelization Workflow: Efficient Concurrent LLM Processing](https://youtu.be/TEPHh2pjTNQ)
---
## 📦 Environment Variables
Make sure to provide these Java environment variables when running the application:
- `GEMINI_API_KEY`: Your Google Gemini API key.
---
## About This Project
This project implements a **News Summarization System** as a real-world example of the Spring AI Parallelization Workflow. It showcases how to:
* Set up a Spring Boot application with Spring AI.
* Configure Spring AI to use Google Gemini (or other LLMs).
* Implement the `ParallelizationWorkflow` to process multiple news articles concurrently.
* Send multiple independent summarization requests to an LLM in parallel.
* Aggregate the results.
* Use Logbook to observe and verify parallel HTTP calls to the LLM.