<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/who-owns-the-state-in-a-microservice--gjvqswlim" -->

---
title: Who Owns the State in a Microservice? | daily.dev
description: Deciding which microservice owns and can modify a given piece of state is framed as the central challenge in microservice design, more critical than choosing...
canonical: https://daily.dev/posts/who-owns-the-state-in-a-microservice--gjvqswlim
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Who Owns the State in a Microservice? | daily.dev
og:description: Deciding which microservice owns and can modify a given piece of state is framed as the central challenge in microservice design, more critical than choosing...
og:url: https://daily.dev/posts/who-owns-the-state-in-a-microservice--gjvqswlim
og:image: https://api.daily.dev/og/posts/GJvQswLIM.png
og:image:alt: Who Owns the State in a Microservice?
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Who Owns the State in a Microservice?

**[Medium](https://daily.dev/sources/medium_js)** · 2 min read · 3 upvotes · 1 comments

## Summary

Deciding which microservice owns and can modify a given piece of state is framed as the central challenge in microservice design, more critical than choosing where a database lives. Allowing multiple services to mutate the same state creates consistency conflicts, so each state should have a single owning service. Using an online order example (Order Service vs Payment Service transitioning an order from Pending to Paid), the piece argues that Domain-Driven Design's bounded contexts help determine which service should own which state.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://medium.com/@mohammadmghig/who-owns-the-state-in-a-microservice-1421f755e1cd>

## Community discussion

Top comments from developers on daily.dev.

**@nark3d** · 0 upvotes

> If two services both read order state and one of them decides Pending means something the other doesn't, the owner is whoever's interpretation wins in production, not whoever's named in the diagram.  Bounded contexts tell you where the language changes.  So when Order says Pending and Payment says Paid, which one is authoritative the moment a refund arrives?

## Similar posts on daily.dev

- [Microservice dogma nearly tanked our seed round](https://daily.dev/posts/microservice-dogma-nearly-tanked-our-seed-round-zevryg2em) · LeadDev · 13 upvotes · 3 comments
- [Designing Microservices: Architectural & Practical Approach](https://daily.dev/posts/designing-microservices-architectural-practical-approach-fg3bzazyt) · Telerik · 0 upvotes · 0 comments
- [When you think of microservices, you probably think of centralized shared services. But there’s another valid pattern that is rarely discussed](https://daily.dev/posts/when-you-think-of-microservices-you-probably-think-of-centralized-shared-services-but-there-s-anot-pt2t4et2g) · ITNEXT · 2 upvotes · 0 comments
- [We Gave Every Team Its Own Database. Nobody Owned the Transaction Between Them.](https://daily.dev/posts/we-gave-every-team-its-own-database-nobody-owned-the-transaction-between-them--ttvg8cisz) · Medium · 0 upvotes · 0 comments

---

Tags: [#distributed-systems](https://daily.dev/tags/distributed-systems), [#domain-driven-design](https://daily.dev/tags/domain-driven-design), [#microservices](https://daily.dev/tags/microservices), [#system-design](https://daily.dev/tags/system-design)

[View this post on daily.dev](https://daily.dev/posts/who-owns-the-state-in-a-microservice--gjvqswlim)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Who Owns the State in a Microservice?","url":"https://daily.dev/posts/who-owns-the-state-in-a-microservice--gjvqswlim","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/who-owns-the-state-in-a-microservice--gjvqswlim"},"datePublished":"2026-09-12T22:05:46.956Z","dateModified":"2026-11-01T18:46:40.772Z","description":"Deciding which microservice owns and can modify a given piece of state is framed as the central challenge in microservice design, more critical than choosing...","image":"https://media.daily.dev/image/upload/s--2-1xRawN--/f_auto/v1722860399/public/Placeholder%2011","thumbnailUrl":"https://media.daily.dev/image/upload/s--2-1xRawN--/f_auto/v1722860399/public/Placeholder%2011","isAccessibleForFree":true,"articleSection":"Medium","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Medium","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/medium","url":"https://daily.dev/sources/medium_js"},"commentCount":1,"discussionUrl":"https://daily.dev/posts/who-owns-the-state-in-a-microservice--gjvqswlim","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":3},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"distributed-systems,domain-driven-design,microservices,system-design","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Medium","item":"https://daily.dev/sources/medium_js"},{"@type":"ListItem","position":3,"name":"Who Owns the State in a Microservice?"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/who-owns-the-state-in-a-microservice--gjvqswlim","comment":[{"@type":"Comment","text":"If two services both read order state and one of them decides Pending means something the other doesn’t, the owner is whoever’s interpretation wins in production, not whoever’s named in the diagram.  Bounded contexts tell you where the language changes.  So when Order says Pending and Payment says Paid, which one is authoritative the moment a refund arrives?","datePublished":"2026-09-20T16:25:21.731Z","url":"https://daily.dev/posts/GJvQswLIM#c-5Wc9aObuy","author":{"@type":"Person","name":"Adam","url":"https://daily.dev/nark3d","image":"https://avatars.githubusercontent.com/u/2162621?v=4"}}]}
```

