liveBook · Manning

Microservice architecture

As explained in Cloud Observability in Action

A microservices application is an application composed of independently deployable services that communicate over interfaces.

A microservice architecture composes an application from independently deployable services that communicate through interfaces. Its boundaries let different services implement distinct responsibilities while participating in shared request workflows. section 1.4 section 8.1.1

An e-commerce application illustrates the structure: a customer-facing frontend calls checkout, which consults item data, fraud detection, shipping, payment, and other dependencies. Administrative functions and external providers can form separate parts of the wider system. section 8.1.1

Use the architecture as an operational system, not only as a set of deployment units:

  • Follow a request across service boundaries when examining behavior, failures, or latency. section 8.1.1
  • Instrument services with logs, metrics, and traces, while treating their boundaries as practical teaching categories rather than rigid tool assignments. section 1.4
  • Account for deployment and orchestration concerns: the demonstration runs as container images on Kubernetes and can also run with Docker Compose or ECS. section 1.4

Sock Shop and a traced request

Sock Shop combines services written with Spring Boot, Go kit, and Node.js. A separate demonstration architecture uses a frontend calling services A and B, with B calling B0 and B1; an OpenTelemetry Collector ingests generated spans into Jaeger. section 1.4 section 8.2.1

Figure 8.4 Example microservices app architecture

Use the architecture diagram to inspect service-to-service calls and the tracing components surrounding them. section 8.2.1

How Cloud Observability in Action covers it

How deep it goes
Defines service independence and interfaces, then follows concrete request paths without detailing service implementation internals.
Examples
Uses Sock Shop, an e-commerce checkout workflow, and a frontend-to-service-A-to-service-B request graph.
What it assumes
Assumes access to a Kubernetes cluster for Sock Shop, while introducing service relationships through concrete application workflows.
What you can do after
Operate/configure a demonstrative microservices application on Kubernetes and inspect its logs, metrics, and distributed traces.
How it connects
Connects microservices with observability, distributed tracing, logs, metrics, containers, and orchestration.

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 Cloud Observability in Action. The section links point to the parts of the book it draws on.