This project demonstrates how to use Spring Boot with Apache Kafka to consume Wikimedia recent changes events in real-time.
- Consumes Wikimedia recent changes stream using Kafka.
- Spring Boot-based application for easy configuration and deployment.
- Example of integrating external event sources with Kafka.
- Java 17 or higher
- Apache Kafka (local or remote)
- Maven
-
Clone the repository:
git clone https://github.com/uy-nguyen00/spring-kafka-wikimedia.git cd spring-kafka-wikimedia -
Start Kafka (if not already running):
- You can use Docker or your local Kafka installation.
-
Configure application properties:
- Edit
src/main/resources/application.propertiesto set your Kafka broker address and topic.
- Edit
-
Build the project:
mvn clean install
-
Run the application:
mvn spring-boot:run
- The application will start consuming Wikimedia events and send them to the configured Kafka topic.
- You can monitor the Kafka topic using a Kafka consumer.
src/main/java: Java source codesrc/main/resources: Configuration filespom.xml: Maven build file
This project is licensed under the MIT License.