Building a Reactive Oauth Client App with SpringBoot and Kotlin Coroutines

Photo by Buzz Andersen on Unsplash Background In this post, I’ll walk through two new exciting things that have happened in the spring ecosystem recently. First is spring webflux support for kotlin couroutines and second is the overhaul of spring security, and the addition of the out of the box oauth2 client support for social logins. For me one of the most impactful new features is the integration with spring coroutines throw the Flow primitive....

June 9, 2020

Test Multipart/Form Data with WebTestClient

Background For the past year or so, I have been working extensively with spring, especially spring webflux; building scalable reactive micro services for our customers. Coming from spring MVC, learning webflux and getting used to reactive programming in general has been a great and worthy learning experience and I highly suggest going through the references section if you haven’t heard of reactive programming and/or have been thinking about giving it a go and don’t know where to start....

April 21, 2019

Post Boot Actions Using Application Events

Background Recently I faced an interesting problem at work. A production app written in Kotlin with Spring Webflux as the webframework had suddenly started taking more than 189 seconds on average to start (more than 3 minutes 😱). Now as much as I love spring for the easy to use and battle tested APIs, everyone knows its not the nimblest of frameworks around, but having a boot time of 3 minutes was simply unacceptable....

January 10, 2019