Skip to Content
Building Event-Driven Microservices
book

Building Event-Driven Microservices

by Adam Bellemare
July 2020
Beginner to intermediate
321 pages
9h 10m
English
O'Reilly Media, Inc.
Book available
Content preview from Building Event-Driven Microservices

Chapter 2. Event-Driven Microservice Fundamentals

An event-driven microservice is a small application built to fulfill a specific bounded context. Consumer microservices consume and process events from one or more input event streams, whereas producer microservices produce events to event streams for other services to consume. It is common for an event-driven microservice to be a consumer of one set of input event streams and a producer of another set of output event streams. These services may be stateless (see Chapter 5) or stateful (see Chapter 7) and may also contain synchronous request-response APIs (see Chapter 13). These services all share the common functionality of consuming events from or producing events to the event broker. Communication between event-driven microservices is completely asynchronous.

Event streams are served by an event broker, which is covered in more detail in the second half of this chapter. Running microservices at any meaningful scale often necessitates using deployment pipelines and container management systems, also discussed near the end of this chapter.

Building Topologies

The term topology comes up frequently in discussions of event-driven microservices. This term is often used to mean the processing logic of an individual microservice. It may also be used to refer to the graph-like relationship between individual microservices, event streams, and request-response APIs. Let’s look at each definition in turn.

Microservice Topology

A microservice ...

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.
Start your free trial

You might also like

Event-Driven Microservices

Event-Driven Microservices

Chris Richardson
Microservices Patterns

Microservices Patterns

Chris Richardson

Publisher Resources

ISBN: 9781492057888Errata Page