← Graph

Can service objects and command handlers call each other?

question 3 connections

Audience asks if service objects or command handlers can call each other and whether dependency injection applies. Krzywda: service objects never call each other; a command is handled by exactly one domain and its handler never invokes another command directly. Coordination happens via events published on pub/sub — read models and processes react. Dependency injection is a good pattern but is rarely needed because the strong decoupling removes most dependencies.

answer_summary
No — service objects don't call each other and command handlers don't invoke other commands directly. Inter-domain coordination is via events and processes. Dependency injection is valid but less necessary here.
question Can service objects and command handlers call each other?
about
Service Object concept
Question about service object composition.
question Can service objects and command handlers call each other?
about
Answer discusses whether DI applies in this architecture.
question Can service objects and command handlers call each other?
asked_at
Asked during Q&A.

Provenance

Read by
4 extractions