Skip to content

docs(kitex): improve transport protocol#1329

Closed
panda-xinyi wants to merge 19 commits intocloudwego:mainfrom
panda-xinyi:docs/improve-transport-protocol
Closed

docs(kitex): improve transport protocol#1329
panda-xinyi wants to merge 19 commits intocloudwego:mainfrom
panda-xinyi:docs/improve-transport-protocol

Conversation

@panda-xinyi
Copy link
Copy Markdown
Contributor

What type of PR is this?

docs(kitex): improve transport protocol documentation with clearer explanations

Check the PR title.

  • This PR title match the format: <type>(optional scope): <description>
  • The description of this PR title is user-oriented and clear enough for others to understand.

(Optional) Translate the PR title into Chinese.

(Optional) More detailed description for this PR(en: English/zh: Chinese).

en:
zh(optional):

(Optional) Which issue(s) this PR fixes:

@panda-xinyi panda-xinyi requested review from a team as code owners May 12, 2025 03:49
在理解 Kitex 的协议支持前,有必要明确两个概念:

- **消息协议(Message Protocol)**:定义了数据如何序列化/反序列化的格式,如 Thrift、Protobuf 等
- **传输协议(Transport Protocol)**:定义了消息如何在网络中传输,包括头部信息、元数据等,如 TTHeader、HTTP/2 等
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HTTP2

- Framed 和 TTHeader 也可以结合使用,所以有 TTHeaderFramed 。
- **Protobuf 的两种使用模式**:Kitex 对 Protobuf 的支持有 Kitex Protobuf 和 gRPC 两种模式
- **Kitex Protobuf**:仅使用 Protobuf 作为消息协议(Payload 编码),传输协议可以自由选择(如 TTHeader、Framed 等)
- **gRPC**:完整的 gRPC 协议栈,**固定使用 Protobuf 作为消息协议**(必须使用 .proto 文件,不支持 Thrift IDL),HTTP/2 作为传输协议
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

咱们的 Kitex gRPC 是支持 Thrift 的,这个文档有点过时了

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

在 Thrift Streaming 中,底层的传输协议就是 gRPC

@GuangmingLuo GuangmingLuo changed the title Docs/improve transport protocol docs(kitex): improve transport protocol May 12, 2025
@panda-xinyi panda-xinyi force-pushed the docs/improve-transport-protocol branch 2 times, most recently from 7c0fa7c to 906686b Compare May 27, 2025 02:17
…rotocol combinations and configuration examples
@panda-xinyi panda-xinyi force-pushed the docs/improve-transport-protocol branch from 906686b to 1a1fbd7 Compare May 27, 2025 02:32
@DMwangnima DMwangnima closed this Aug 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

3 participants