Skip to content

MarcoFaccani/spring-cloud-stream-kafka-v3-producer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Overview

This project aims to showcase how to integrate with a Kafka Cluster using Spring Cloud Stream. It exposes a POST endpoint that allows a client to upload a file, which is then sent to a Kafka topic and consumed by a listener

Please note the focus of this project is not the REST API nor the efficiency of it.

Tech Stack

  • Spring Boot V2.7
  • Java 11
  • Spring Cloud Stream Kafka Binder V3

Run

  1. Spin locally a Kafka Broker on port 9092
  2. Run the producer app and the consumer app
  3. Using your favourite REST Client, do POST http://localhost:8080/image and pass a file.
  4. Go check the consumer's folder /resources/files, you should find the file saved there.

About

Apache Kafka producer app with spring-cloud-stream-kafka

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages