liveBook · Manning

Microservice architecture

As explained in Authorization in Action

Microservices is an architectural pattern in which an application is composed of independently deployable services that communicate over a network.

Microservice architecture composes an application from smaller services that communicate through networked APIs. Each service boundary creates another exposed entry point, so authorization must remain consistent across the service graph. section 11.0 section 11.1

From one guarded door to many

ACME split a Customer Collaboration monolith into document, search, and notification services; HR and Finance created additional APIs. A request such as a manager retrieving a project report could cross a dozen APIs, whose inconsistent checks made authorization fragmented and brittle. section 11.1

Common enforcement placements include:

  • An API gateway centralizes enforcement for selected inbound traffic. section 11.1
  • A service mesh applies enforcement across service-to-service communication. section 11.1
  • Per-service proxies protect critical APIs close to individual services. section 11.1

How Authorization in Action covers it

How deep it goes
Explains service decomposition and compares gateway, service-mesh, and per-service proxy enforcement, without detailing deployment implementation.
Examples
Uses ACME’s decomposed collaboration, HR, and Finance systems and a cross-service project-report request.
What it assumes
Assumes familiarity with APIs and contrasts distributed services with a monolith’s single authorization boundary.
What you can do after
Evaluate where authorization enforcement should sit across gateways, service meshes, and critical service APIs.
How it connects
Connects microservice architecture to API authorization, service mesh, API gateways, policy enforcement points, and Cedar.

Also explained in

Compare how 14 books explain microservice architecture →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Authorization in Action. The section links point to the parts of the book it draws on.