Skip to content

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.

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.

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.

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.

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.

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.

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.

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.

A service usually goes through the following stages:

  1. Created to support a new application or capability
  2. Extended as requirements evolve
  3. Potentially reused by additional applications
  4. Stabilized as part of the platform’s core capabilities

Over time, some services become foundational, while others remain application-specific.

Both are valid.

Avoid the following:

Multiple services accessing the same database schema creates tight coupling and blocks independent evolution.

Frontend applications or other services should not replicate business rules.

Logic belongs in the owning service.

Too many small services with unclear responsibilities increase operational complexity without providing architectural benefits.

Long synchronous call chains between services reduce reliability and increase latency.

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.

  • 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