https://github.com/farel46/spring-cloud-stream-kafka
Some working examples of Spring Cloud Stream for Kafka
https://github.com/farel46/spring-cloud-stream-kafka
debezium docker-compose druid eventdrivenarchitecture kafdrop kafka kafka-connect kafka-producer kubernetes olap spring spring-boot spring-webflux springcloud
Last synced: about 1 year ago
JSON representation
Some working examples of Spring Cloud Stream for Kafka
- Host: GitHub
- URL: https://github.com/farel46/spring-cloud-stream-kafka
- Owner: farel46
- Created: 2025-04-04T11:30:48.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-09T18:50:09.000Z (about 1 year ago)
- Last Synced: 2025-04-09T18:54:05.357Z (about 1 year ago)
- Topics: debezium, docker-compose, druid, eventdrivenarchitecture, kafdrop, kafka, kafka-connect, kafka-producer, kubernetes, olap, spring, spring-boot, spring-webflux, springcloud
- Language: Java
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
```markdown
# Spring Cloud Stream with Kafka 🚀
Welcome to the **Spring Cloud Stream Kafka** repository! This project provides working examples of using Spring Cloud Stream with Kafka. Whether you are new to Spring or looking to enhance your Kafka skills, you are in the right place.
## Table of Contents
- [Introduction](#introduction)
- [Getting Started](#getting-started)
- [Features](#features)
- [Examples](#examples)
- [Technologies Used](#technologies-used)
- [Contributing](#contributing)
- [License](#license)
- [Releases](#releases)
- [Contact](#contact)
## Introduction
Spring Cloud Stream simplifies the process of building message-driven microservices. With Kafka as a messaging system, developers can create robust, scalable applications. This repository includes practical examples to help you get started.
## Getting Started
To begin using this project, follow these steps:
1. **Clone the Repository**
Use the command below to clone this repository to your local machine:
```bash
git clone https://github.com/farel46/spring-cloud-stream-kafka.git
cd spring-cloud-stream-kafka
```
2. **Set Up Kafka**
Make sure you have a running Kafka instance. You can download Kafka from the [Apache Kafka website](https://kafka.apache.org/downloads).
3. **Run the Examples**
Each example has its own instructions. Navigate to the respective directories and follow the provided instructions to run the applications.
## Features
- **Stream Processing**: Process and manipulate data streams in real-time.
- **Message Handling**: Efficiently handle messages with back-pressure support.
- **Multiple Bindings**: Configure multiple input and output channels easily.
- **Integration with Spring**: Leverage the power of the Spring framework.
- **Cloud-Native**: Built with microservices architecture in mind.
## Examples
Here are some key examples included in this repository:
### Simple Kafka Producer
This example demonstrates a simple producer that sends messages to a Kafka topic.
1. Navigate to the `kafka-producer` directory.
2. Run the application using the command:
```bash
mvn spring-boot:run
```
### Kafka Consumer
This example showcases a Kafka consumer that listens to messages from a specific topic.
1. Go to the `kafka-consumer` directory.
2. Execute the application:
```bash
mvn spring-boot:run
```
### Stream Processing
The stream processing example shows how to filter and transform data as it passes through the system.
1. Head to the `stream-processing` folder.
2. Start the application with:
```bash
mvn spring-boot:run
```
## Technologies Used
- **Spring Boot**: Simplifies the setup and development of Spring applications.
- **Spring Cloud Stream**: A framework for building message-driven microservices.
- **Kafka**: A distributed streaming platform.
- **PostgreSQL**: A powerful, open-source object-relational database system.
## Contributing
We welcome contributions! If you would like to help, please follow these steps:
1. Fork the repository.
2. Create a new branch (`git checkout -b feature/YourFeature`).
3. Make your changes.
4. Commit your changes (`git commit -m 'Add your feature'`).
5. Push to the branch (`git push origin feature/YourFeature`).
6. Open a Pull Request.
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
## Releases
To access the latest releases, visit the following link:
[](https://github.com/farel46/spring-cloud-stream-kafka/releases)
If you encounter any issues, please check the "Releases" section.
## Contact
For any questions, feel free to reach out:
- **Email**: your-email@example.com
- **GitHub**: [farel46](https://github.com/farel46)
Thank you for visiting the Spring Cloud Stream Kafka repository! Happy coding! 🎉
```