Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Console: domain models and structure of console backend #140

Open
robocanic opened this issue Jan 10, 2024 · 0 comments
Open

Console: domain models and structure of console backend #140

robocanic opened this issue Jan 10, 2024 · 0 comments
Labels
console/backend Console backend type control-plane control plane related proposal propose new suggestions for the project

Comments

@robocanic
Copy link
Contributor

robocanic commented Jan 10, 2024

领域模型可以分为四大两小:
四大:

  1. Application:应用。由实例,服务以及工作负载(k8s环境下)来共同定义,同时作为枢纽,联结Service与Instance。
  2. Instance:实例。应用运行的实体,属于应用,在k8s环境下就是一个Pod。
  3. Service:服务。一组接口的集合,应用可以作为服务的生产者,也可以作为服务的消费者。
  4. Rule:规则。涵盖Dubbo支持的所有规则,粒度可以是应用级的,也可以是接口级的。

两小:

  1. Interface:接口。一次RPC调用的原子方法,多个接口组成一个服务。
  2. Parameter:参数。即接口的入参和出参。
    image

Console 后端架构图整体可以分为三层:

  1. Repository:数据操作层。封装数据操作接口,屏蔽数据源的异构性
  2. Domain:业务逻辑层。聚合从Repository得到的数据(如果逻辑臃肿重复,可以细分为两层)
  3. Router,Handler,Middleware:路由&视图层。路由绑定,校验请求参数,异常日志打印等。
    image
@robocanic robocanic changed the title [Console Roadmap Modules and structure of console backend Console Roadmap Modules and structure of console backend Jan 10, 2024
@robocanic robocanic changed the title Console Roadmap Modules and structure of console backend Console: domain models and structure of console backend Jan 10, 2024
@mfordjody mfordjody added control-plane control plane related console/backend Console backend type proposal propose new suggestions for the project labels Mar 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
console/backend Console backend type control-plane control plane related proposal propose new suggestions for the project
Projects
None yet
Development

No branches or pull requests

2 participants