Q1: What is the principle of dividing services?

Source: Internet
Author: User

Criteria for judging good service

  • Maintain high cohesion within the service itself (with its own domain model)
  • Encapsulation internal changes, through the API external exposure function (only the service itself code can access the database of the domain model, other systems can only indirectly access the service data through the API exposed by the service)
  • Be loosely coupled with other services, able to modify and deploy independently (other systems that rely on the service do not have to be modified and deployed at the same time)
  • Be able to implement service governance and change independently

There can be multiple publishing units on top of the same domain model (context), but only one is the service

  • One is the service
  • One is a timed task.
  • A management background

Q1: What is the principle of dividing services?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.