An open API service indexing awesome lists of open source software.

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.

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`