- 
                Notifications
    You must be signed in to change notification settings 
- Fork 559
Architecture
        Luca edited this page Mar 26, 2017 
        ·
        8 revisions
      
           ═ ═ ═▷ init         ─ ─ ─ ▷ async       ──────▶ sync
----------------------------------------------------------------------------------------
                            ┌ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─
                                       ┌ ─ ─ ─ ┐ │
           ─ ─ ─ ─ ─ ─ ─ ─ ─│ Registry  Monitor ───────────────────────────┐
          │                            └ ─ ─ ─ ┘ │                         │
                            └ ─ ─△─ ─ ─ ─ ─△─ ─ ─                          ▼
          │                                                           ┌ ─ ─ ─ ─
        Notify                   ║         ║                            Telnet │
          │         ═ ═ ═ ═ ═ ═ ═           ═ ═ ═ ═ ═ ═ ═ ═ ═         └ ─ ─ ─ ─
                   ║                                         ║             ▲
          │    Subscribe                                  Register         │
                   ║                                         ║             │
          │  ┌ ─ ─ ─ ─ ─                          ┌ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─    │
                        │─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ▷           ┌ ─ ─ ─ ┐ │   │
          └ ▷│ Consumer           Invoke          │ Provider  Monitor ─────┘
                        │────────────────────────▶           └ ─ ─ ─ ┘ │
             └ ─ ─ ─ ─ ─                          └ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─
---------------------------------------------------------------------------------------
注册中心, 包括注册服务, 订阅服务, 服务变更自动通知等功能; 所有Client和Server需要与Registry维持长连接并保持心跳.
服务提供者, Server端会在启动时自动注册所有服务到Registry.
服务消费者, Client端会在启动时向Registry发送要订阅的服务列表, 当所订阅服务发生变更时Registry会将信息推动到Client端.
Server(Provider)与Registry(默认实现, 不包括ZK)内置Monitor监控模块, 通过telnet查看监控信息.