liveBook · Manning

Projection

A projection is a derived, query-oriented representation of selected data, often maintained from events or a domain model.

How 2 Manning books explain it

Akka in Action, Second Edition

A database projection is a component that consumes persisted events and maintains a queryable relational representation of selected domain data.

How it is used
Builds queryable views and integration outputs from persisted events.
How deep it goes
Explains source providers, handlers, offsets, effectively-once processing, and tag-based parallelism; limits Persistence Query projections to eventsByTag.
Examples
Demonstrates cargo-count tables, betting-risk queries, and serialized market events published to Kafka.
What you can do after
Builds queryable database views or Kafka outputs from tagged persisted events using Akka projections.

Read how Akka in Action, Second Edition explains projection →

Clean Applications with Hexagonal Architecture

A projection is a read-only view containing selected data from a domain model rather than the domain entity itself.

How it is used
Separates data returned by queries from aggregates used to enforce business rules.
How deep it goes
Explains repository conventions and read-strategy selection, including freshness, performance, ownership, and maintenance trade-offs.
Examples
Uses an article-by-ID DTO and an event-fed author directory supplying display names.
What you can do after
Evaluate read strategies for a query by weighing freshness, request-time work, and local-copy maintenance.

Read how Clean Applications with Hexagonal Architecture explains projection →

What to know first

Related concepts

Questions about projection

What is projection?

A projection is a derived, query-oriented representation of selected data, often maintained from events or a domain model.

Which Manning books explain projection?

Akka in Action, Second Edition and Clean Applications with Hexagonal Architecture.

What should I know before learning projection?

Manning books that teach projection usually introduce event first.

What is the difference between projection and read replica?

A projection is a derived, query-oriented representation of selected data, often maintained from events or a domain model. A read replica is a database copy that receives replicated data from a primary and serves read operations, typically separately from writes.

What is projection a kind of?

Projection is a kind of read model. A read model is a data representation optimized for retrieving and presenting information through queries.

What is projection part of?

Projection is part of CQRS. CQRS is an architectural pattern that separates operations and models for changing application state from those for reading or querying it.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.