Skip to content

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot WebFlux

A Spring Boot application that demonstrates reactive programming using Spring WebFlux and Project Reactor.

Overview

This project implements a reactive REST API using Spring WebFlux. It demonstrates non-blocking request processing, reactive streams, and asynchronous data handling using Reactor's Mono and Flux types.

Tech Stack

  • Java 17
  • Spring Boot 3.1.3
  • Spring WebFlux
  • Project Reactor
  • Maven
  • Lombok
  • JUnit 5

Features

  • Reactive REST API development
  • Non-blocking request handling
  • Asynchronous data processing
  • Reactive streams with Flux
  • Single-result publishers with Mono
  • Functional endpoint routing
  • Reactive request/response pipeline
  • Reactive testing with Reactor Test

API Endpoints

Method Endpoint Description
GET / Returns a reactive response from the application
GET /flux Returns multiple values as a Flux stream
GET /mono Returns a single value as a Mono
GET /pipeline Demonstrates a reactive processing pipeline

Update the endpoints above if your implementation contains different routes.

Configuration

Default configuration:

server:
  port: 8080

spring:
  application:
    name: webflux

Reactive Programming

The application uses Spring WebFlux and Project Reactor to provide non-blocking and asynchronous request processing.

Core reactive types:

  • Mono<T> — emits zero or one item
  • Flux<T> — emits zero to many items

These types allow the application to process requests efficiently without blocking threads while waiting for operations to complete.

Project Structure

src/main/java/com/havefunwith/webflux
├── handler
├── router
├── service
├── model
├── repository
└── WebfluxApplication.java

Notes

This project was built as a learning project to practice Spring WebFlux concepts, including reactive programming, non-blocking APIs, functional routing, Mono, Flux, and reactive request processing.

Author

Marlon Braga

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages