Skip to content

Commit

Permalink
update image
Browse files Browse the repository at this point in the history
  • Loading branch information
AsterDY authored Sep 29, 2024
1 parent e1b2dc2 commit ff7e70e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions content/en/docs/kitex/Tutorials/advanced-feature/fieldmask.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ description: ""

## **What is thrift FieldMask**?

![](static/img/docsstatic/img/docs/kitex/Tutorials/advanced-feature/IQptbzlBdoFcPcxGbCwlSqpmgcb.png)

FieldMask is inspired by <u>[Protobuf](https://protobuf.dev/reference/protobuf/google.protobuf/#field-mask)</u> and used to indicate the data that users care about, and filter out useless data, during a RPC call, in order to reduce network package size and accelerate serializing/deserializing process. This technology has been widely used among Protobuf <u>[services](https://netflixtechblog.com/practical-api-design-at-netflix-part-1-using-protobuf-fieldmask-35cfdc606518)</u>.

![fieldmask](static/img/docs/kitex/Tutorials/advanced-feature/fieldmask.png)

## **How to construct a FieldMask**?

To construct a fieldmask, you need two things:
Expand Down
4 changes: 2 additions & 2 deletions content/zh/docs/kitex/Tutorials/advanced-feature/fieldmask.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ description: ""

## 什么是 Thrift FieldMask?

![](static/img/docsstatic/img/docs/kitex/Tutorials/advanced-feature/U6zybX2jEoNAVnxEMnil3JT7g4d.png)

FieldMask 是受到 <u>[Protobuf](https://protobuf.dev/reference/protobuf/google.protobuf/#field-mask) </u>的启发,用于在 RPC 调用时**指示用户关心的数据并过滤掉无用的数据**的一种手段。该技术不但可以在 RPC 服务中实现**特定字段的屏蔽**,同时还可以**减少消息传输开销**以提升服务性能,目前已广泛应用于 Protobuf<u>[服务](https://netflixtechblog.com/practical-api-design-at-netflix-part-1-using-protobuf-fieldmask-35cfdc606518)</u>中。

![fieldmask](static/img/docs/kitex/Tutorials/advanced-feature/fieldmask.png)

对于 thrift RPC 服务来说,有如下潜在使用场景:

- 下发字段管控。如 隐私合规,请求打包 等业务
Expand Down
Binary file not shown.

0 comments on commit ff7e70e

Please sign in to comment.