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

zk standalone #1

Open
ping-chang-xin opened this issue Dec 5, 2021 · 0 comments
Open

zk standalone #1

ping-chang-xin opened this issue Dec 5, 2021 · 0 comments

Comments

@ping-chang-xin
Copy link
Owner

ping-chang-xin commented Dec 5, 2021

zk 单机模式

单机模式的源码采用分层结构来分析,如下图:

WX20211205-230544@2x

整体架构如下:

zk-standalone

standalone模式请求处理流程简介

从上面的架构图基本可以看出一些处理流程,zk很多地方采用了阻塞队列进行解耦,流程比较清晰

  • 网络部分采用的NIO模型
  • 核心业务流程使用的是一系列处理器,每个处理器之间通过阻塞队列解耦
  • SyncRequestProcessor是最关键的处理器,后面分析
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant