With the ever increasing data we’re processing, traditional IO confronts us with its limitations of cpu usage in threads. We cannot scale threads on the JVM (or most other platforms) easily, which means our micorservices loses one of their biggest benefits: scalability.
Spring Framework 5 introduced the support for reactive programming across the whole Spring family. In this talk we’ll take advantage of that and build reactive microservices with a frontend connected via RSocket. Nothing in the flow will be a blocking operation; neither request, business logic nor database operations.
For syntactic sugar, we’ll use kotlin coroutines which are perfect for the asynchronous nature of reactive programming.
This talk is indented for audiences NOT familiar with reactive programming in Spring.