In software development, the term microservices refers to many independent services communicating with each other over an API. In a microservice architecture, these services must exchange information in order to perform complex tasks, and each communication is a point of vulnerability, and potential latency.

This Spring Boot tutorial screencast demonstrates many of the critical functions how microservices communicate with each other, including how microservice architectures use tokens:

  • Creation of private/public key pair
  • Registration of public key from one service to another service
  • Creation of JWTs signed with private key
  • Verification of JWTs using public key
  • Example of Account Resolution Service using signed JWTs
  • The Basics of Microservices in Spring Boot, Using JSON Web Tokens (or JWTs)

    Excited to learn more about microservices or JSON web tokens? Check out these resources:

  • How to: Secure Connected Microservices in Spring Boot with OAUth and JWTs
  • Exploring Microservice Architectures with Stormpath
  • How We Migrated Our Backend to Spring Boot in 3 Weeks
  • A Beginner’s Guide to JWTs in Java
  • Where to Store Your JWTs — Cookies or HTML5 Web Storage