03 — Service — The Container
Service — The Container
Understand what a Service is — the fundamental unit of organization
What is a Service?
Services are logical containers organizing related business logic
The Service Builder
Define metadata, attach handlers, and create instances
Service Configuration
Add typed custom configuration with Zod schemas
Resources & Dependencies
Database connections, APIs, external systems needed
Custom Service Class
Extend the base class for gateway and adapter patterns
Testing a Service
Validate setup, configuration, and wiring with unit tests