--- url: "http://microservices.io/patterns/decomposition/service-per-team.html" titulek: "Service per team" h1: "Service per team" popis: "" jazyk: "" kanonicka: "" drobecky: [] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-13 21:12:24" znaku: 7564 slov: 1008 kodovani: "utf-8" sha256: "0b37a9fab201023d2e55d68125a3642a2f6d443a0d2cffffeebba8249ab62496" --- #### [Microservice Architecture](/index.html) **Supported by [Kong](https://konghq.com/)** # Service per team [pattern](/tags/pattern) [service granularity](/tags/service granularity) --- ## Context A high performance development organization consist of multiple teams. Each team is long-lived, small (typically 5-9 people), loosely coupled, autonomous, and cross-functional. [Conway’s law](https://en.wikipedia.org/wiki/Conway%27s_law) says an architecture mirrors the communication structure of the organization that builds it. Consequently, an organization consisting of loosely coupled teams needs a loosely coupled architecture. One such loosely coupled architecture is the [microservice architecture](/patterns/microservices.html). It’s an application style that structures an application as a loosely coupled set of services. [Decompose by Subdomain](decompose-by-subdomain.html) and [Decompose by business capability](decompose-by-business-capability.html) are patterns for identifying services and organizing them around business functionality. But what’s the relationship between services and teams? One approach is a shared ownership model where multiple teams to work on each service as necessary. For example, each team might be responsible for implementing features that span multiple services. On the one hand, this approach aligns teams with the user experience. But on the other hand, it increases the amount of coordination needed between the teams. Also, the lack of code ownership increases the risk of poor code quality. A better approach, which increases team autonomy and loose coupling, is a code/service ownership model. The team, which is responsible for a business function/capability owns a code base, which they deploy as one of more services. As a result, the team can freely develop, test, deploy and scale its services. They primarily interact with other teams in order to negotiate APIs. A team should ideally own just one service since that’s sufficient to ensure team autonomy and loose coupling and each additional service adds complexity and overhead. A team should only deploy its code as multiple services if it solves a tangible problem, such as significantly reducing lead time or improving scalability or fault tolerance. Since a team must be small, its cognitive capacity is limited. In order for the team to be productive, its code base should be scoped to not exceed the team’s cognitive capacity. In other words, it must ‘fit’ in the team’s heads. As a result, there is an upper bound on the size and/or complexity of a service. ## Problem What’s the relationship between teams and services? ## Forces - A team should be small, e.g. 5-9 people - A team should be autonomous and loosely coupled - The size and complexity of the team’s code base must not exceed the team’s cognitive capacity. - Finer-grained service decomposition improves *-ilities* including maintainability, testability, deployability - Finer-grained service decomposition adds complexity ## Solution Each service is owned by a team, which has sole responsibility for making changes. Ideally each team has only one service: Each team is responsible for one or more business functions (e.g. business capabilities). A team owns (has sole responsibility for changing) a code base consisting of one or more modules. Its code base is sized so as to not exceed the cognitive capacity of team. The team deploys its code as one or more services. A team should have exactly one service unless there is a proven need to have multiple services. ## Resulting context This pattern has the following benefits: - Enables each team to be autonomous and work with minimal coordination with other teams - Enables the teams to be loosely coupled - Achieves team autonomy and loose coupling with the minimum number of services - Improves code quality due to long term code ownership This pattern has the following drawbacks: - Teams are not necessarily aligned with end user features - Implementing features that span services is more complicated and requires teams to collaborate - [Microservice architecture](/patterns/microservices.html) - creates the need for this pattern - [Decompose by Subdomain](decompose-by-subdomain.html) and [Decompose by business capability](decompose-by-business-capability.html) are patterns for identifying services --- [pattern](/tags/pattern) [service granularity](/tags/service granularity) --- --- [Modernization Help](https://chrisrichardson.net/) Copyright © 2026 Chris Richardson • All rights reserved • Supported by [Kong](https://konghq.com/) . #### About Microservices.io Microservices.io is created by [Chris Richardson](/about.html), software architect, creator of the original CloudFoundry.com, and author of *Microservices Patterns*. Chris helps organizations modernize their architecture to enable fast flow and GenAI-powered software delivery. #### Need help modernizing your architecture? Avoid the trap of creating a modern legacy system — a new architecture with the same old problems. Contact me to discuss your modernization goals. [Get Help](https://www.linkedin.com/in/pojos/) #### Microservices Patterns, 2nd edition I am very excited to announce that the MEAP for the second edition of my book, Microservices Patterns is now available! [Learn more](/post/architecture/2025/06/26/announcing-meap-microservices-patterns-2nd-edition.html) #### ASK CHRIS ? Got a question about microservices? Fill in [this form](https://forms.gle/ppYDAF1JxHGec8Kn9). If I can, I'll write a blog post that answers your question. #### LEARN about microservices Chris offers numerous other resources for learning the microservice architecture. #### Get the book: Microservices Patterns Read Chris Richardson's book: --- #### Example microservices applications Want to see an example? Check out Chris Richardson's example applications. [See code](http://eventuate.io/exampleapps.html) #### Virtual bootcamp: Distributed data patterns in a microservice architecture My virtual bootcamp, distributed data patterns in a microservice architecture, is now open for enrollment! It covers the key distributed data management patterns including Saga, API Composition, and CQRS. It consists of video lectures, code labs, and a weekly ask-me-anything video conference repeated in multiple timezones. The regular price is $395/person but use coupon OFFEFKCW to sign up for $95 (valid until Sept 30th, 2025). There are deeper discounts for buying multiple seats. [Learn more](https://chrisrichardson.net/virtual-bootcamp-distributed-data-management.html) #### Learn how to create a service template and microservice chassis Take a look at my [Manning LiveProject](/post/patterns/2022/03/15/service-template-chassis-live-project.html) that teaches you how to develop a service template and microservice chassis. [Signup for the newsletter](http://visitor.r20.constantcontact.com/d.jsp?llr=ula8akwab&p=oi&m=1123470377332&sit=l6ktajjkb&f=15d9bba9-b33d-491f-b874-73a41bba8a76) #### BUILD microservices Ready to start using the microservice architecture? #### Consulting services [Engage Chris](http://www.chrisrichardson.net/consulting.html) to create a microservices adoption roadmap and help you define your microservice architecture, --- #### The Eventuate platform Use the [Eventuate.io platform](https://eventuate.io) to tackle distributed data management challenges in your microservices architecture. Eventuate is Chris's latest startup. It makes it easy to use the Saga pattern to manage transactions and the CQRS pattern to implement queries. --- Join the [microservices google group](https://groups.google.com/forum/#!forum/microservices)