SteelReed

Search

Search posts, questions…

MicroservicesQuestion 3 / 24

Middle

How do you define microservice boundaries, why should each service own its database, and what problems does that create?

Short answer

Boundaries come from the business, not from tables or technical layers: event storming finds bounded contexts, and each context becomes a service owned by one team. Each service owns its data, because a shared DB turns the schema into a hidden contract and kills independent deploys.

another service needs dataEvent storming with domainexpertsBounded contextOne service, one teamService's own DBAPI or copy from events

3 points to say:

  1. Draw boundaries by business: event storming → bounded context; never split by table or by technical layer.
  2. Database per service: nobody reads or writes another service's tables; cross-service data goes via API or a copy built from events.
  3. The price: sagas instead of cross-service transactions, read models instead of joins, accepting eventual consistency.

Keep reading the deep dive

Create a free account to read the full explanation and follow-up questions, mark questions as studied and review them on a schedule.