liveBook · Manning

Microservice architecture

As explained in Kafka for Architects

Microservices architecture is an architectural style composed of independently deployable services organized around separate capabilities.

Microservice architecture organizes independently deployable services around separate capabilities. A customer-profile service can validate and store profile changes, then publish events to Kafka; another service can combine profile, billing, and interaction events into a richer view. section 3.1

Kafka provides an event-driven integration layer between services, reducing direct coupling while supporting scalability and fault tolerance. Each service owns the code that produces, consumes, validates, processes, and acknowledges its messages. section 3.1 section 5.5

Design decisions balance development simplicity with operational control:

  • Use Spring-Kafka or Micronaut-Kafka to simplify client development, accepting that frameworks can obscure Kafka internals. section 3.1
  • Use low-level Kafka clients when custom message conversion, dead-letter routing, consumer concurrency, or offset handling requires precise control. section 3.1
  • Choose Kafka according to non-functional requirements; RabbitMQ or Apache Pulsar may better fit low-latency transactional messaging or other specialized needs. section 5.5

How Kafka for Architects covers it

How deep it goes
Explains service roles, Kafka integration, frameworks, and trade-offs, but stops short of low-level client implementation.
Examples
Uses customer profiles, billing events, clickstream analytics, fraud scoring, IoT telemetry, and operational alerting.
What it assumes
Assumes awareness of distributed service integration while allowing frameworks to shield teams from Kafka internals.
What you can do after
Builds Kafka-integrated producer and consumer services with Spring-Kafka, Micronaut-Kafka, or lower-level clients.
How it connects
Connects microservice architecture to Kafka, event-driven systems, Kafka Connect, and messaging-platform trade-offs.

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 Kafka for Architects. The section links point to the parts of the book it draws on.