Services
This page describes how backend services are used within the platform and how they are expected to be designed and evolved.
It builds on the definitions in Core concepts and focuses on practical architectural guidance.
Role of services
Section titled “Role of services”Services are the primary building blocks of backend functionality.
They:
- Encapsulate business logic
- Define clear responsibility boundaries
- Own their operational data
- Expose functionality through APIs or events
Applications are composed of one or more services.
The platform exists to make services easy to build, deploy, integrate, and operate.
Service responsibilities
Section titled “Service responsibilities”Each service should have a single, clearly defined responsibility.
General principles:
- A service should do one thing well
- Business logic belongs in services, not in consumers
- Services should be independently deployable
- Responsibilities should remain stable over time
A service may support multiple applications if the responsibility is shared.
Reuse is encouraged when it aligns with domain boundaries.
When to create a new service
Section titled “When to create a new service”As a rule of thumb, create a new service when:
- A new domain or business capability is introduced
- A responsibility does not naturally fit an existing service
- Independent lifecycle or scaling is needed
- Clear ownership boundaries are required
Avoid creating a new service when:
- You only need a new endpoint
- The change fits naturally within an existing service’s responsibility
- The separation would introduce unnecessary coupling or complexity
Services are not created for technical convenience alone.
They represent ownership boundaries.
Service ownership
Section titled “Service ownership”Every service must have clear ownership.
This includes responsibility for:
- Business logic
- Data models
- APIs and events
- Operational health
- Ongoing evolution
Ownership typically resides within the software team, in close collaboration with the business domain responsible for the functionality.
Data ownership
Section titled “Data ownership”Services own their data.
This means:
- Each service controls its own database schema
- Other services must not access another service’s database directly
- Data is shared through APIs or events
This isolation allows services to evolve independently and reduces hidden coupling.
Communication between services
Section titled “Communication between services”Services interact through:
- Synchronous APIs (typically REST)
- Asynchronous events or messaging
- Platform-provided service invocation mechanisms
The choice of communication model depends on the use case:
- Use APIs when immediate feedback is required
- Use events to decouple systems and enable scalable workflows
From an architectural perspective, all of these are considered integrations.
Designing for loose coupling
Section titled “Designing for loose coupling”Services should minimize assumptions about each other.
Key practices:
- Communicate through well-defined interfaces
- Avoid sharing internal data models
- Prefer events for cross-domain communication
- Avoid synchronous chains across multiple services
Loose coupling improves resilience, enables independent deployment, and reduces the impact of change.
Typical service lifecycle
Section titled “Typical service lifecycle”A service usually goes through the following stages:
- Created to support a new application or capability
- Extended as requirements evolve
- Potentially reused by additional applications
- Stabilized as part of the platform’s core capabilities
Over time, some services become foundational, while others remain application-specific.
Both are valid.
Common anti-patterns
Section titled “Common anti-patterns”Avoid the following:
Shared databases
Section titled “Shared databases”Multiple services accessing the same database schema creates tight coupling and blocks independent evolution.
Business logic in consumers
Section titled “Business logic in consumers”Frontend applications or other services should not replicate business rules.
Logic belongs in the owning service.
Over-fragmentation
Section titled “Over-fragmentation”Too many small services with unclear responsibilities increase operational complexity without providing architectural benefits.
Chatty service communication
Section titled “Chatty service communication”Long synchronous call chains between services reduce reliability and increase latency.
What this page does not cover
Section titled “What this page does not cover”This page does not describe:
- Individual services
- Technology stacks
- Deployment pipelines
- Runtime configuration
- Monitoring or operations
Those topics are covered in other sections of the documentation.
Summary
Section titled “Summary”- Services are backend microservices that encapsulate business responsibilities
- They own their data and expose functionality through defined interfaces
- Clear ownership and stable boundaries are essential
- New services are created based on domain needs, not technical convenience
- Loose coupling and independent evolution are key design goals