Save 37% off PRO during our Black Friday Sale! »

Reactive Microservices with Spring Boot and JHipster - Richmond JUG 2021

Reactive Microservices with Spring Boot and JHipster - Richmond JUG 2021

Microservice architectures are all the rage in JavaLand. They allow teams to develop services independently and deploy autonomously.

Why microservices?
you are developing a large/complex application
you need to deliver it rapidly, frequently, and reliably
over a long period of time
the Microservice Architecture is often a good choice

Reactive architectures are becoming increasingly popular for organizations that need to do more, with less hardware. Reactive programming allows you to build systems that are resilient to high load.

In this session, I'll show you how to use JHipster to create a reactive microservices architecture with Spring Boot, Spring Cloud, Keycloak, and run it all in Docker. You will leave with the know-how to create your own resilient apps!

Related blog post:
GitHub repo:


Matt Raible

January 21, 2021


  1. Reactive Java Microservices with Spring Boot, JHipster, and OAuth Jan

    21, 2021 Matt Raible | @mraible Photo by Taber Andrew Bain
  2. None
  3. What is JHipster?

  4. How to Use JHipster Install JHipster and Yeoman, using npm:

    npm install -g generator-jhipster Create a directory and cd into it: take app Run it! jhipster
  5. * PLEASE run JHipster in an brand new, empty directory;

    else 😕 Monolith, Gateway, or Microservices? Spring MVC or Spring WebFlux? Authentication Type? Database Type? Build Tool? Web Framework? JHipster Options
  6. Does JHipster Provide the Paradox of Choice?



  9. Thriving OSS Project Started by Julien Dubois on October 21,

    2013 App Generator, Platform, Learning Tool …
  10. @mraible Hi, I’m Matt Raible Father, Husband, Skier, Mountain Biker,

    Whitewater Rafter Bus Lover Web Developer and Java Champion Okta Developer Advocate Blogger on and @mraible
  11. None
  12. None
  13. None

  15. Spring History of Spring October 2002 - Rod Johnson writes

    J2EE Design & Development 2004 - Spring 1.0 2006 - Spring 2.0 with better XML 2009 - JavaConfig 2014 - Spring Boot 1.0 2015 - Spring Cloud 1.0 🍃
  16. Microservices Visionaries

  17. “Any organization that designs a system (defined broadly) will produce

    a design whose structure is a copy of the organization's communication structure.” Conway’s Law Melvin Conway 1967
  18. None
  19. “Do one thing and do it well.”

  20. None
  21. None
  22. Spring WebFlux!

  23. Spring Cloud Gateway

  24. Back to redirect URI with authorization code Exchange code

    for access token and ID token Email ********** Go to authorization server Redirect URI: Scope: openid profile Authorization Server Connect with Google Resource owner Client 
 Allow Yelp to access your public profile and contacts? No Yes Request consent from resource owner Hello Matt! Get user info 
 with access token /userinfo OAuth 2.0 and OIDC
  25. None
  26. Demo Create microservices with JDL Run apps and e2e tests

    Switch identity providers Run everything with Docker java-microservices-examples 🤓
  27. What You Learned


  29. What’s Next for JHipster? Micro Frontends Spring Boot 2.4 GraphQL

  30. Reactive Microservices with Spring Cloud Gateway

  31. The JHipster Mini-Book 
 Written with Asciidoctor Free download from

    InfoQ: Quick and to the point, 164 pages Developed a real world app: Buy for $20 or download for FREE
  32. Learn More Spring Boot JHipster Okta APIs
  33. @oktadev

  34. Action: Try JHipster 7! 🚀 npm i -g generator-jhipster@beta

  35. git clone example.git Use the Source, Luke!

  36. Thanks! Keep in Touch @mraible Presentations Code