Microservices: Difference between revisions
From Devguid
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
== Rules == | |||
* Can be upgraded without clients need to be upgraded | |||
* Define a clear public interface/contract | |||
** Make additivie changes | |||
** Create new endpoints | |||
** New properties on DTOs | |||
** Publish new version of it, previous version must still be supported | |||
== About == | == About == | ||
Revision as of 19:08, 25 April 2023
Rules
- Can be upgraded without clients need to be upgraded
- Define a clear public interface/contract
- Make additivie changes
- Create new endpoints
- New properties on DTOs
- Publish new version of it, previous version must still be supported
About
- Autonomous
- Single responsibility principle
- Do one thing and do it well
- Should be able to deploy on it's own
- Public interface should be defined clearly
- Perform well
- Resilience to error
- Secure
- Own their own data
- Independently deployable
- Within specific boundaries
When do you need one
- When scaling