Building Microservices with .NET Core
by Soumya Mukherjee, Gaurav Aroraa, Lalit Kale, Manish Kanwar
Communication resilience
What would happen if the authentication service that contains all the user authentication data and authorization data become unavailable? Does this mean that the entire microservice ecosystem would come down to its knees, as all the actions or a big percentage of them would need to be authorized for the user attempting the action? This does not fit the domain of the microservice architecture. Let's see how we could deal with this.
One way could be to replicate user authorization data within each service that requires it. When the authorization data is already available with the respective services, it will reduce the data being transferred through the JWTs being moved around. What this would achieve is that in the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access