Service Layer Design

Designing the layer that fronts business logic: what an application service owns (transaction boundary, authorisation, orchestration, translation) and what it must not absorb, the difference between application and domain services, and whether the layer is warranted at all. Use when every service method is a single repository call, when a service has become where all rules accumulate, when two services call each other and transactions nest, when authorisation is spread between controller and repository, or when a facade is added over a facade. Does not cover where the rules belong (domain-logic-organization), transaction semantics (enterprise-transactions), remote API design (remote-facade-and-dto), or layer dependency direction (layering-and-boundaries).

robsonkades 3704e58 4 files · 27.5 KB Updated

File contents

robsonkades/agent-skills/tree/main/skills/service-layer-design commit 3704e586ed

Frequently asked questions

npx skillmds@latest add robsonkades/service-layer-design