hf400159 commented on code in PR #8252: URL: https://github.com/apache/apisix/pull/8252#discussion_r1017513323
########## docs/zh/latest/tutorials/cache-api-responses.md: ########## @@ -0,0 +1,219 @@ +--- +title: API 缓存 +keywords: + - API 网关 + - Apache APISIX + - 缓存 + - 性能 +description: 本文主要介绍了如何使用 APISIX 处理网关级别的缓存。通过本教程,用户能够了解如何使用 `proxy-cache` 插件为你的 Web 应用或微服务 API 提升响应效率。 +--- + +<!-- +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +--> + +## 描述 + +本文介绍了如何使用 APISIX 来处理网关级别的缓存。通过本教程,你可以了解到如何使用 `proxy-cache` 插件为你的 Web 应用或微服务 API 提升响应效率。 + +## 通过缓存提升性能 + +我们总是希望构建简单快速的 API,但随着 API 请求的并发数增加,如下问题日益凸显,此时考虑使用缓存: + +- 请求延时增加,影响用户体验。 +- 高并发传递到数据库,使得数据库查询时间明显增加。 +- API 可用性降低,甚至会时不时发生网络故障。 + Review Comment: ```suggestion 针对以上问题,APISIX 支持配置缓存,来增加服务响应速度。 ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
