https://github.com/up2code/spring-wikimedia-kafka
This project to demonstrate how to integrate with Kafka in Spring Boot.
https://github.com/up2code/spring-wikimedia-kafka
Last synced: about 1 year ago
JSON representation
This project to demonstrate how to integrate with Kafka in Spring Boot.
- Host: GitHub
- URL: https://github.com/up2code/spring-wikimedia-kafka
- Owner: up2code
- Created: 2024-12-17T16:47:29.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-02T10:51:51.000Z (over 1 year ago)
- Last Synced: 2025-01-02T11:31:08.156Z (over 1 year ago)
- Language: Java
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Kafka with Spring Boot Webflux
This project to demonstrate how to integrate with Kafka in Spring Boot.
## Overview
```mermaid
sequenceDiagram
Wikimedia->>Spring Boot: Event
Spring Boot->>Kafka: Produce
Kafka->>Spring Boot: Consume
Spring Boot->>OpenSearch: Push
```
This application will fetch events from wikimedia SSE and push into Kafka topic `wikimedia.recentchange`.
Also consume message from this topic and push into OpenSearch.
### Getting Started
1. **Clone the repository:**
```sh
git clone https://github.com/up2code/spring-wikimedia-kafka.git
cd spring-wikimedia-kafka
```
2. **Start the Docker containers:**
```sh
docker-compose up -d
```
3. **Build the project:**
```sh
./mvnw clean install
```
4. **Run the application:**
```sh
./mvnw spring-boot:run
```
### Accessing the Application
- The application will be running at: `http://localhost:38080` (Change port at `src/main/resources/application.properties`)
- OpenSearch: `http://localhost:5601`
- Kafka UI: `http://localhost:8080`