diff --git a/content/en/docs/kitex/Tutorials/advanced-feature/fieldmask.md b/content/en/docs/kitex/Tutorials/advanced-feature/fieldmask.md index 6e66287767..c98bbfcba2 100644 --- a/content/en/docs/kitex/Tutorials/advanced-feature/fieldmask.md +++ b/content/en/docs/kitex/Tutorials/advanced-feature/fieldmask.md @@ -8,10 +8,10 @@ description: "" ## **What is thrift FieldMask**? -![](static/img/docsstatic/img/docs/kitex/Tutorials/advanced-feature/IQptbzlBdoFcPcxGbCwlSqpmgcb.png) - FieldMask is inspired by [Protobuf](https://protobuf.dev/reference/protobuf/google.protobuf/#field-mask) 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 [services](https://netflixtechblog.com/practical-api-design-at-netflix-part-1-using-protobuf-fieldmask-35cfdc606518). +![fieldmask](static/img/docs/kitex/Tutorials/advanced-feature/fieldmask.png) + ## **How to construct a FieldMask**? To construct a fieldmask, you need two things: diff --git a/content/zh/docs/kitex/Tutorials/advanced-feature/fieldmask.md b/content/zh/docs/kitex/Tutorials/advanced-feature/fieldmask.md index b31a5c18a7..f430a0dcc6 100644 --- a/content/zh/docs/kitex/Tutorials/advanced-feature/fieldmask.md +++ b/content/zh/docs/kitex/Tutorials/advanced-feature/fieldmask.md @@ -8,10 +8,10 @@ description: "" ## 什么是 Thrift FieldMask? -![](static/img/docsstatic/img/docs/kitex/Tutorials/advanced-feature/U6zybX2jEoNAVnxEMnil3JT7g4d.png) - FieldMask 是受到 [Protobuf](https://protobuf.dev/reference/protobuf/google.protobuf/#field-mask) 的启发,用于在 RPC 调用时**指示用户关心的数据并过滤掉无用的数据**的一种手段。该技术不但可以在 RPC 服务中实现**特定字段的屏蔽**,同时还可以**减少消息传输开销**以提升服务性能,目前已广泛应用于 Protobuf[服务](https://netflixtechblog.com/practical-api-design-at-netflix-part-1-using-protobuf-fieldmask-35cfdc606518)中。 +![fieldmask](static/img/docs/kitex/Tutorials/advanced-feature/fieldmask.png) + 对于 thrift RPC 服务来说,有如下潜在使用场景: - 下发字段管控。如 隐私合规,请求打包 等业务 diff --git a/static/img/docs/kitex/Tutorials/advanced-feature/U6zybX2jEoNAVnxEMnil3JT7g4d.png b/static/img/docs/kitex/Tutorials/advanced-feature/U6zybX2jEoNAVnxEMnil3JT7g4d.png deleted file mode 100644 index 8fde754b69..0000000000 Binary files a/static/img/docs/kitex/Tutorials/advanced-feature/U6zybX2jEoNAVnxEMnil3JT7g4d.png and /dev/null differ diff --git a/static/img/docs/kitex/Tutorials/advanced-feature/IQptbzlBdoFcPcxGbCwlSqpmgcb.png b/static/img/docs/kitex/Tutorials/advanced-feature/fieldmask.png similarity index 100% rename from static/img/docs/kitex/Tutorials/advanced-feature/IQptbzlBdoFcPcxGbCwlSqpmgcb.png rename to static/img/docs/kitex/Tutorials/advanced-feature/fieldmask.png