官术网_书友最值得收藏!

Service granularity

Here are the types of services:

  • Atomic or system services: These are the services that do a unit level of work and are enough to service the request by either referring to a database or a downstream source.
  • Composite or process services: These services depend on the coordination between two or more atomic services. Typically, composite microservices are discouraged unless the business case already involves using existing atomic services. An example is a credit card payment from a savings account that calls two services, one to debit the savings account, and an other to credit the card account. Composite microservices also introduce inherent complexity such as state management and transactions that are difficult in a distributed scenario.
  • Experience services: These services are tied to the customer journey and are deployed at the edge of the infrastructure. These services handle requests from the mobile and web applications. These services are exposed through a reverse proxy using tools such as API gateways.
主站蜘蛛池模板: 永新县| 宁乡县| 全南县| 湘西| 大方县| 蒙城县| 遵化市| 丰城市| 台东县| 抚远县| 济南市| 金塔县| 怀安县| 电白县| 上蔡县| 维西| 永兴县| 井研县| 古丈县| 广水市| 堆龙德庆县| 天峨县| 扶余县| 东海县| 深州市| 涞水县| 莆田市| 鱼台县| 樟树市| 西青区| 樟树市| 兴隆县| 越西县| 温宿县| 若尔盖县| 枝江市| 霍邱县| 德州市| 冷水江市| 万全县| 宣城市|