Skip to content

tginsberg/springboot-reactive-kotlin-coroutines

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 

Reactive Spring Boot with Kotlin Coroutines

license

This code supports a blog post I wrote, and implements a reactive counter using Spring Boot, Kotlin, Kotlin Coroutines, and Redis.

Getting The Code

git clone https://github.com/tginsberg/springboot-reactive-kotlin-coroutines.git

Build Information

Technologies used in this project:

  1. Java 11 (but 8 will work fine)
  2. Spring Boot 2.3 (but 2.2.x will work fine)
  3. Kotlin 1.3.72
  4. Gradle 6.3

To run this project, you'll need:

  1. Redis installed and ready to use on the default port
  2. A cursory understanding of reactive concepts and Spring Boot

Running the server

./gradlew bootRun

Endpoints

Purpose Method URL Accept Header
Current state of counter GET / application/json
Counter event stream GET / text/event-stream
Increment counter PUT /up application/json
Decrement counter PUT /down application/json

About

An example reactive server using Spring Boot 2.3 and Kotlin Coroutines

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages