---
title: "OpenResty Learning Center: NGINX, Lua, Performance, and API Gateway Tutorials - API7.ai"
description: "Learn OpenResty with practical NGINX and Lua tutorials for performance, caching, traffic control, and API gateway patterns in production systems."
url: "https://api7.ai/ja/learning-center/openresty"
---

# OpenResty (NGINX + Lua)

[![OpenRestyとNGINXの違いは何ですか？](https://static.api7.ai/2022/10/02/6338eea79f757.png)](https://api7.ai/ja/learning-center/openresty/openresty-vs-nginx)

OpenResty (NGINX + Lua)

September 9, 2022

#### [OpenRestyとNGINXの違いは何ですか？](https://api7.ai/ja/learning-center/openresty/openresty-vs-nginx)

OpenRestyとは何か、そしてなぜ現在多くの企業でOpenRestyが使用されているのか？この記事を読んで、そのダイナミックでノンブロッキングな特徴について学びましょう。

[OpenResty](https://api7.ai/tags/openresty)

[NGINX](https://api7.ai/tags/nginx)

[Lua](https://api7.ai/tags/lua)

[![あなたの最初のOpenRestyプログラム: Hello World](https://static.api7.ai/2022/10/02/6338ecfc5d6c2.png)](https://api7.ai/ja/learning-center/openresty/hello-world-in-openresty)

OpenResty (NGINX + Lua)

September 9, 2022

#### [あなたの最初のOpenRestyプログラム: Hello World](https://api7.ai/ja/learning-center/openresty/hello-world-in-openresty)

この投稿に従って、OpenRestyでHello Worldを実装しましょう！

[OpenResty](https://api7.ai/tags/openresty)

[NGINX](https://api7.ai/tags/nginx)

[Lua](https://api7.ai/tags/lua)

[![OpenResty背后的子项目](https://static.api7.ai/2022/10/02/6338ed50a167c.png)](https://api7.ai/ja/learning-center/openresty/subprojects-behind-openresty)

OpenResty (NGINX + Lua)

September 12, 2022

#### [OpenResty背后的子项目](https://api7.ai/ja/learning-center/openresty/subprojects-behind-openresty)

本篇文章介绍了OpenResty的目录结构及相关工具，例如NGINX C Modules、test-nginx、lua-resty项目等。

[OpenResty](https://api7.ai/tags/openresty)

[NGINX](https://api7.ai/tags/nginx)

[Lua](https://api7.ai/tags/lua)

[![LuaRocksとOPMを通じてOpenRestyのサードパーティパッケージを管理する方法](https://static.api7.ai/2022/10/02/6338ee48e0c56.png)](https://api7.ai/ja/learning-center/openresty/how-to-manage-openresty-packages)

OpenResty (NGINX + Lua)

September 17, 2022

#### [LuaRocksとOPMを通じてOpenRestyのサードパーティパッケージを管理する方法](https://api7.ai/ja/learning-center/openresty/how-to-manage-openresty-packages)

我们可以使用OPM或LuaRocks来管理OpenResty的第三方包。通过阅读这篇文章了解更多信息。

[OpenResty](https://api7.ai/tags/openresty)

[NGINX](https://api7.ai/tags/nginx)

[Lua](https://api7.ai/tags/lua)

[![OpenResty中使用的NGINX知识](https://static.api7.ai/2022/10/02/6338edbe6f0be.png)](https://api7.ai/ja/learning-center/openresty/knowledge-of-nginx-used-in-openresty)

OpenResty (NGINX + Lua)

September 17, 2022

#### [OpenResty中使用的NGINX知识](https://api7.ai/ja/learning-center/openresty/knowledge-of-nginx-used-in-openresty)

NginxはMaster-Workerモデルとリクエスト実行フェーズを提供しています。この記事を読むことで、Nginxの基本をより深く理解することができます。

[OpenResty](https://api7.ai/tags/openresty)

[NGINX](https://api7.ai/tags/nginx)

[Lua](https://api7.ai/tags/lua)

[![Luaの始め方](https://static.api7.ai/2022/10/02/6338ec7449840.png)](https://api7.ai/ja/learning-center/openresty/getting-started-with-lua)

OpenResty (NGINX + Lua)

September 23, 2022

#### [Luaの始め方](https://api7.ai/ja/learning-center/openresty/getting-started-with-lua)

Luaは、主にアプリケーションへの組み込み利用を目的として設計された、軽量で高水準のプログラミング言語です。ここからLuaを始めてみましょう！

[OpenResty](https://api7.ai/tags/openresty)

[NGINX](https://api7.ai/tags/nginx)

[Lua](https://api7.ai/tags/lua)

[![What Is the Difference Between LuaJIT And Standard Lua?](https://static.api7.ai/2022/10/02/6338ebfdd2da2.png)](https://api7.ai/ja/learning-center/openresty/luajit-vs-lua)

OpenResty (NGINX + Lua)

September 23, 2022

#### [What Is the Difference Between LuaJIT And Standard Lua?](https://api7.ai/ja/learning-center/openresty/luajit-vs-lua)

LuaJIT 是 Lua 编程语言的即时编译器（JIT），它为什么比 Lua 更快？它们之间有什么区别？

[OpenResty](https://api7.ai/tags/openresty)

[NGINX](https://api7.ai/tags/nginx)

[Lua](https://api7.ai/tags/lua)

[![Why Does lua-resty-core Perform Better？](https://static.api7.ai/2022/10/02/6338e9e855ca0.png)](https://api7.ai/ja/learning-center/openresty/why-lua-resty-core-perform-better)

OpenResty (NGINX + Lua)

September 30, 2022

#### [Why Does lua-resty-core Perform Better？](https://api7.ai/ja/learning-center/openresty/why-lua-resty-core-perform-better)

The lua-resty-core is a new FFI-based API for lua-nginx-module, which provides higher performance. Learn more from this post.

[OpenResty](https://api7.ai/tags/openresty)

[NGINX](https://api7.ai/tags/nginx)

[Lua](https://api7.ai/tags/lua)

[![JITコンパイラの欠点: NYIを避けるべき理由](https://static.api7.ai/2022/10/02/6338eb0183eea.png)](https://api7.ai/ja/learning-center/openresty/avoid-lua-not-yet-implemented-features)

OpenResty (NGINX + Lua)

September 30, 2022

#### [JITコンパイラの欠点: NYIを避けるべき理由](https://api7.ai/ja/learning-center/openresty/avoid-lua-not-yet-implemented-features)

LuaJITにはまだ実装されていない機能（LuaJIT NYI）がいくつかあります。それらをよく理解して、高性能なLuaコードを書くようにしましょう。

[OpenResty](https://api7.ai/tags/openresty)

[NGINX](https://api7.ai/tags/nginx)

[Lua](https://api7.ai/tags/lua)

[![Luaにおけるtableとmetatableとは何か？](https://static.api7.ai/2022/10/14/634974e027871.png)](https://api7.ai/ja/learning-center/openresty/lua-table-and-metatable)

OpenResty (NGINX + Lua)

October 11, 2022

#### [Luaにおけるtableとmetatableとは何か？](https://api7.ai/ja/learning-center/openresty/lua-table-and-metatable)

Table 是 Lua 中唯一的数据结构机制。我们可以使用 tables 来表示普通的数组、符号表、集合、记录、队列以及其他数据结构。通过这篇文章了解更多内容。

[OpenResty](https://api7.ai/tags/openresty)

[NGINX](https://api7.ai/tags/nginx)

[Lua](https://api7.ai/tags/lua)

[![トップティップス：Luaにおけるユニークなコンセプトと落とし穴の見分け方](https://static.api7.ai/2022/10/14/634974e2dd70a.png)](https://api7.ai/ja/learning-center/openresty/lua-basic-concepts-and-pitfalls)

OpenResty (NGINX + Lua)

October 12, 2022

#### [トップティップス：Luaにおけるユニークなコンセプトと落とし穴の見分け方](https://api7.ai/ja/learning-center/openresty/lua-basic-concepts-and-pitfalls)

以下是一些独特的Lua概念，例如Weak Table、Closure和upvalue。

[OpenResty](https://api7.ai/tags/openresty)

[NGINX](https://api7.ai/tags/nginx)

[Lua](https://api7.ai/tags/lua)

[![LuaルールとNGINX設定が競合した場合どうなるか？](https://static.api7.ai/2022/10/14/634974e117ebd.png)](https://api7.ai/ja/learning-center/openresty/conflict-between-lua-rules-and-nginx)

OpenResty (NGINX + Lua)

October 13, 2022

#### [LuaルールとNGINX設定が競合した場合どうなるか？](https://api7.ai/ja/learning-center/openresty/conflict-between-lua-rules-and-nginx)

关于OpenResty、API Gateway和Lua的一些问答。

[OpenResty](https://api7.ai/tags/openresty)

[NGINX](https://api7.ai/tags/nginx)

[Lua](https://api7.ai/tags/lua)

[![OpenRestyの特別な点は何か](https://static.api7.ai/2022/10/14/634974e090ab4.png)](https://api7.ai/ja/learning-center/openresty/openresty-getting-started)

OpenResty (NGINX + Lua)

October 14, 2022

#### [OpenRestyの特別な点は何か](https://api7.ai/ja/learning-center/openresty/openresty-getting-started)

OpenResty 是基于 NGINX 和 LuaJIT 构建的，从这里开始学习它的基本概念及其工作原理。

[OpenResty](https://api7.ai/tags/openresty)

[NGINX](https://api7.ai/tags/nginx)

[Lua](https://api7.ai/tags/lua)

[![文档与测试用例：解决OpenResty开发问题的强大工具](https://static.api7.ai/2022/10/23/635548f2bbb62.png)](https://api7.ai/ja/learning-center/openresty/openresty-documentation-and-test-cases)

OpenResty (NGINX + Lua)

October 23, 2022

#### [文档与测试用例：解决OpenResty开发问题的强大工具](https://api7.ai/ja/learning-center/openresty/openresty-documentation-and-test-cases)

OpenRestyは、APIパラメータ、戻り値の型、サンプルコードを含む詳細なドキュメントを提供するだけでなく、テストケースを用いて徹底的にテストされています。これにより、開発者がOpenRestyを効果的に利用するための手助けとなります。

[OpenResty](https://api7.ai/tags/openresty)

[NGINX](https://api7.ai/tags/nginx)

[Lua](https://api7.ai/tags/lua)

[![OpenResty 是支持动态请求和响应的增强版 NGINX](https://static.api7.ai/2022/10/23/635548f2dd41e.png)](https://api7.ai/ja/learning-center/openresty/handling-requests-responses-dynamically)

OpenResty (NGINX + Lua)

October 23, 2022

#### [OpenResty 是支持动态请求和响应的增强版 NGINX](https://api7.ai/ja/learning-center/openresty/handling-requests-responses-dynamically)

OpenRestyは、動的なリクエストとレスポンスをサポートする拡張版NGINXです。この記事では、OpenRestyにおけるリクエストとレスポンスを操作するためのAPIについて説明します。例えば、「ngx.req.set\_method」、「ngx.req.set\_uri\_args」、「ngx.req.set\_header」などのAPIについて解説します。

[OpenResty](https://api7.ai/tags/openresty)

[NGINX](https://api7.ai/tags/nginx)

[Lua](https://api7.ai/tags/lua)

[![NGINXワーカー間のコミュニケーションの魔法：最も重要なデータ構造の1つ \`shared dict\`](https://static.api7.ai/2022/10/28/635ba9ebe407a.png)](https://api7.ai/ja/learning-center/openresty/communication-magic-between-nginx-workers-shared-dict)

OpenResty (NGINX + Lua)

October 27, 2022

#### [NGINXワーカー間のコミュニケーションの魔法：最も重要なデータ構造の1つ `shared dict`](https://api7.ai/ja/learning-center/openresty/communication-magic-between-nginx-workers-shared-dict)

shared dict 是 NGINX 和 OpenResty 中的一个重要数据结构。

[OpenResty](https://api7.ai/tags/openresty)

[NGINX](https://api7.ai/tags/nginx)

[Lua](https://api7.ai/tags/lua)

[![OpenResty 的核心：cosocket](https://static.api7.ai/2022/10/28/635bae79cdffd.png)](https://api7.ai/ja/learning-center/openresty/the-core-of-openresty-cosocket)

OpenResty (NGINX + Lua)

October 28, 2022

#### [OpenResty 的核心：cosocket](https://api7.ai/ja/learning-center/openresty/the-core-of-openresty-cosocket)

cosocket 是各种 lua-resty-\* 非阻塞库的基础。本文介绍了 cosocket 的基本概念和常用 API。

[OpenResty](https://api7.ai/tags/openresty)

[NGINX](https://api7.ai/tags/nginx)

[Lua](https://api7.ai/tags/lua)

[![Webサーバーを超えて：特権プロセスとタイマータスク](https://static.api7.ai/2022/11/04/6364e41a51e18.png)](https://api7.ai/ja/learning-center/openresty/privileged-process-and-timer-tasks)

OpenResty (NGINX + Lua)

November 3, 2022

#### [Webサーバーを超えて：特権プロセスとタイマータスク](https://api7.ai/ja/learning-center/openresty/privileged-process-and-timer-tasks)

Privileged Process 和 Timer Tasks 是 OpenResty 区别于 NGINX 和其他 Web 服务器的重要特性。

[OpenResty](https://api7.ai/tags/openresty)

[NGINX](https://api7.ai/tags/nginx)

[Lua](https://api7.ai/tags/lua)

[![OpenResty 中常见 API 的介绍](https://static.api7.ai/2022/11/03/63638d7f43be0.png)](https://api7.ai/ja/learning-center/openresty/introduction-openresty-common-apis)

OpenResty (NGINX + Lua)

November 4, 2022

#### [OpenResty 中常见 API 的介绍](https://api7.ai/ja/learning-center/openresty/introduction-openresty-common-apis)

この記事では、OpenRestyの一般的なAPIを使用して、時間操作、正規表現、およびその他の一般的な問題に対処する方法を紹介します。

[OpenResty](https://api7.ai/tags/openresty)

[NGINX](https://api7.ai/tags/nginx)

[Lua](https://api7.ai/tags/lua)

[![OpenResty による Layer 4 トラフィックの処理と Memcached サーバーの実装](https://static.api7.ai/2022/11/11/636e1cd19ec42.png)](https://api7.ai/ja/learning-center/openresty/implementing-memcached-server)

OpenResty (NGINX + Lua)

November 10, 2022

#### [OpenResty による Layer 4 トラフィックの処理と Memcached サーバーの実装](https://api7.ai/ja/learning-center/openresty/implementing-memcached-server)

OpenResty is easy to implement Memcached Server using the stream module provided by NGINX, which can handle layer 4 of traffic.

[OpenResty](https://api7.ai/tags/openresty)

[NGINX](https://api7.ai/tags/nginx)

[Lua](https://api7.ai/tags/lua)

[![OpenResty FAQ | 特権プロセス権限、実行フェーズなど](https://static.api7.ai/2022/11/13/6370ea6a2e791.png)](https://api7.ai/ja/learning-center/openresty/faq-2)

OpenResty (NGINX + Lua)

November 11, 2022

#### [OpenResty FAQ | 特権プロセス権限、実行フェーズなど](https://api7.ai/ja/learning-center/openresty/faq-2)

NGINX + Lua（OpenResty）FAQでは、特権プロセスの権限、フェーズとデバッグ、ngx.exitの実践、変数、および競合状態に関する質問に答えます。

[OpenResty](https://api7.ai/tags/openresty)

[NGINX](https://api7.ai/tags/nginx)

[Lua](https://api7.ai/tags/lua)

[![コード貢献の障壁: \`test::nginx\`](https://static.api7.ai/2022/11/18/637726197c166.png)](https://api7.ai/ja/learning-center/openresty/introduction-to-test-nginx)

OpenResty (NGINX + Lua)

November 17, 2022

#### [コード貢献の障壁: `test::nginx`](https://api7.ai/ja/learning-center/openresty/introduction-to-test-nginx)

test::nginx 是一种用于 OpenResty 中 TDD 的 DSL，可用于 NGINX 和 HTTP 测试。

[OpenResty](https://api7.ai/tags/openresty)

[NGINX](https://api7.ai/tags/nginx)

[Lua](https://api7.ai/tags/lua)

[![\`test::nginx\`のテスト方法：設定、リクエスト送信、およびレスポンス処理](https://static.api7.ai/2022/11/18/63772706eb042.png)](https://api7.ai/ja/learning-center/openresty/all-inclusive-testing-methods-test-nginx)

OpenResty (NGINX + Lua)

November 18, 2022

#### [`test::nginx`のテスト方法：設定、リクエスト送信、およびレスポンス処理](https://api7.ai/ja/learning-center/openresty/all-inclusive-testing-methods-test-nginx)

この記事では、test::nginxを使用してテストケースでリクエストを送信し、レスポンスを処理する方法について説明します。

[OpenResty](https://api7.ai/tags/openresty)

[NGINX](https://api7.ai/tags/nginx)

[Lua](https://api7.ai/tags/lua)

[![\`test::nginx\` の知られざる使い方](https://static.api7.ai/2022/11/25/63802a7fb4697.png)](https://api7.ai/ja/learning-center/openresty/little-known-usage-of-test-nginx)

OpenResty (NGINX + Lua)

November 24, 2022

#### [`test::nginx` の知られざる使い方](https://api7.ai/ja/learning-center/openresty/little-known-usage-of-test-nginx)

test::nginxには、プリプロセッサ、カスタム関数、シャッフル、リインデックスなどの機能があります。

[OpenResty](https://api7.ai/tags/openresty)

[NGINX](https://api7.ai/tags/nginx)

[Lua](https://api7.ai/tags/lua)

[![\`wrk\`を使った正確なパフォーマンステスト](https://static.api7.ai/2022/11/25/63802abdc3b1b.png)](https://api7.ai/ja/learning-center/openresty/performance-testing-tool-wrk)

OpenResty (NGINX + Lua)

November 25, 2022

#### [`wrk`を使った正確なパフォーマンステスト](https://api7.ai/ja/learning-center/openresty/performance-testing-tool-wrk)

この記事では、パフォーマンステストツール \`wrk\` の特徴と、効率的かつ正確なパフォーマンステストを行うための使用方法について説明します。

[OpenResty](https://api7.ai/tags/openresty)

[NGINX](https://api7.ai/tags/nginx)

[Lua](https://api7.ai/tags/lua)

[![OpenResty FAQ | テスト用ネットワーク構造、SSL関連機能、DSL、\`ab\`ツール](https://static.api7.ai/2022/12/02/63896c177fde1.png)](https://api7.ai/ja/learning-center/openresty/faq-3)

OpenResty (NGINX + Lua)

December 1, 2022

#### [OpenResty FAQ | テスト用ネットワーク構造、SSL関連機能、DSL、`ab`ツール](https://api7.ai/ja/learning-center/openresty/faq-3)

この記事では、テストネットワーク環境の構築方法、test::nginxのSSLおよびDSLサポート、そして\`ab\`ツールについて説明します。

[OpenResty](https://api7.ai/tags/openresty)

[NGINX](https://api7.ai/tags/nginx)

[Lua](https://api7.ai/tags/lua)

[![非阻塞I/O - OpenResty性能提升的关键](https://static.api7.ai/2022/12/05/638dce5075e0f.png)](https://api7.ai/ja/learning-center/openresty/blocking-io)

OpenResty (NGINX + Lua)

December 2, 2022

#### [非阻塞I/O - OpenResty性能提升的关键](https://api7.ai/ja/learning-center/openresty/blocking-io)

OpenRestyでは、ブロッキングI/O操作を使用しないようにしましょう。これらはパフォーマンスに影響を与えます。よく誤用される操作には、外部コマンドの実行、ディスクI/Oの処理、およびlusocketsの使用などがあります。

[OpenResty](https://api7.ai/tags/openresty)

[Lua](https://api7.ai/tags/lua)

[Nginx](https://api7.ai/tags/nginx)

[![OpenResty における \`string\` の利点と欠点](https://static.api7.ai/2022/12/09/6392eeb028c7f.png)](https://api7.ai/ja/learning-center/openresty/advantages-and-disadvantages-of-string)

OpenResty (NGINX + Lua)

December 8, 2022

#### [OpenResty における `string` の利点と欠点](https://api7.ai/ja/learning-center/openresty/advantages-and-disadvantages-of-string)

本記事では、OpenRestyで従うべき最適化技術を紹介します。リクエストを短く、シンプルに、そして迅速に処理し、中間データの生成を避けることが重要です。また、文字列の最適化技術についても解説します。

[OpenResty](https://api7.ai/tags/openresty)

[Lua](https://api7.ai/tags/lua)

[Nginx](https://api7.ai/tags/nginx)

[![OpenResty で 10 倍のパフォーマンス向上を実現するためのヒント: \`Table\` データ構造](https://static.api7.ai/2022/12/09/6392ea632a2b0.png)](https://api7.ai/ja/learning-center/openresty/tips-10x-performance-improvement-openresty-table-data-structure)

OpenResty (NGINX + Lua)

December 9, 2022

#### [OpenResty で 10 倍のパフォーマンス向上を実現するためのヒント: `Table` データ構造](https://api7.ai/ja/learning-center/openresty/tips-10x-performance-improvement-openresty-table-data-structure)

在openresty中，table对性能有着显著的影响。本文介绍了如何通过手动维护下标、重用table以及使用tablepool来优化性能。

[OpenResty](https://api7.ai/tags/openresty)

[NGINX](https://api7.ai/tags/nginx)

[Lua](https://api7.ai/tags/lua)

[![OpenResty コーディングスタイルガイド](https://static.api7.ai/2022/12/15/639adf5d98bc3.png)](https://api7.ai/ja/learning-center/openresty/openresty-coding-style-guide)

OpenResty (NGINX + Lua)

December 15, 2022

#### [OpenResty コーディングスタイルガイド](https://api7.ai/ja/learning-center/openresty/openresty-coding-style-guide)

OpenResty 风格指南包含了关于“如何编写” OpenResty、Lua、NGINX 代码的一般规则。

[OpenResty](https://api7.ai/tags/openresty)

[NGINX](https://api7.ai/tags/nginx)

[Lua](https://api7.ai/tags/lua)

[![OpenResty中的各种调试方法](https://static.api7.ai/2022/12/15/639ade5d3f4f3.png)](https://api7.ai/ja/learning-center/openresty/debugging-methods-openresty)

OpenResty (NGINX + Lua)

December 16, 2022

#### [OpenResty中的各种调试方法](https://api7.ai/ja/learning-center/openresty/debugging-methods-openresty)

この記事では、OpenRestyでのデバッグ方法について説明します。ブレークポイントやログ出力、Binary Search Algorithmとコメント、動的デバッグ、フレームグラフなどを使用したデバッグ手法を紹介します。

[OpenResty](https://api7.ai/tags/openresty)

[NGINX](https://api7.ai/tags/nginx)

[Lua](https://api7.ai/tags/lua)

[![高性能の鍵：\`shared dict\`と\`lru\`キャッシュ](https://static.api7.ai/2022/12/23/63a54acc69330.png)](https://api7.ai/ja/learning-center/openresty/high-performance-keys-shared-dict-lru-cache)

OpenResty (NGINX + Lua)

December 22, 2022

#### [高性能の鍵：`shared dict`と`lru`キャッシュ](https://api7.ai/ja/learning-center/openresty/high-performance-keys-shared-dict-lru-cache)

この記事では、Openrestyにおける\`shared dict\`と\`lru\`キャッシュの使用シナリオ、使用方法、および実装原理について紹介します。

[OpenResty](https://api7.ai/tags/openresty)

[NGINX](https://api7.ai/tags/nginx)

[Lua](https://api7.ai/tags/lua)

[![\`systemtap-toolkit\` と \`stapxx\`: データを使って難しい問題を解決する方法は？](https://static.api7.ai/2022/12/23/63a548149b18c.png)](https://api7.ai/ja/learning-center/openresty/systemtap-toolkit-and-stapxx)

OpenResty (NGINX + Lua)

December 22, 2022

#### [`systemtap-toolkit` と `stapxx`: データを使って難しい問題を解決する方法は？](https://api7.ai/ja/learning-center/openresty/systemtap-toolkit-and-stapxx)

基于SystemTap的封装工具集：systemtap-toolkit和stapxx，可用于解决NGINX和OpenResty的实时分析与诊断问题。

[OpenResty](https://api7.ai/tags/openresty)

[NGINX](https://api7.ai/tags/nginx)

[Lua](https://api7.ai/tags/lua)

[![キャッシュスタンピードを回避する方法](https://static.api7.ai/2022/12/30/63ae8b050ab9e.png)](https://api7.ai/ja/learning-center/openresty/how-to-avoid-cache-stampede)

OpenResty (NGINX + Lua)

December 29, 2022

#### [キャッシュスタンピードを回避する方法](https://api7.ai/ja/learning-center/openresty/how-to-avoid-cache-stampede)

我们可以使用active update cache、lua-resty-lock、lua-resty-shcache以及NGINX指令来解决NGINX和OpenResty中的缓存雪崩问题。

[OpenResty](https://api7.ai/tags/openresty)

[NGINX](https://api7.ai/tags/nginx)

[Lua](https://api7.ai/tags/lua)

[![\`lua-resty-\*\` のカプセル化により、開発者が多段階キャッシュから解放される](https://static.api7.ai/2022/12/30/63aeaa94b24c8.png)](https://api7.ai/ja/learning-center/openresty/lua-resty-encapsulation-releases-developers-from-caching)

OpenResty (NGINX + Lua)

December 30, 2022

#### [`lua-resty-*` のカプセル化により、開発者が多段階キャッシュから解放される](https://api7.ai/ja/learning-center/openresty/lua-resty-encapsulation-releases-developers-from-caching)

この記事では、\`lua-resty-memcached-shdict\` と \`lua-resty-mlcache\` という2つのキャッシュカプセル化ライブラリの実装原理と使用方法を紹介します。

[OpenResty](https://api7.ai/tags/openresty)

[NGINX](https://api7.ai/tags/nginx)

[Lua](https://api7.ai/tags/lua)

[![如何应对突发流量：漏桶算法和令牌桶算法](https://static.api7.ai/2023/01/05/63b6948f84a38.png)](https://api7.ai/ja/learning-center/openresty/how-to-deal-with-bursty-traffic)

OpenResty (NGINX + Lua)

January 5, 2023

#### [如何应对突发流量：漏桶算法和令牌桶算法](https://api7.ai/ja/learning-center/openresty/how-to-deal-with-bursty-traffic)

この記事では、NGINXとOpenRestyでリーキーバケットとトークンバケットアルゴリズムを使用して、突発的なトラフィックを解決する方法について説明します。

[OpenResty](https://api7.ai/tags/openresty)

[NGINX](https://api7.ai/tags/nginx)

[Lua](https://api7.ai/tags/lua)

[![OpenResty 中的动态速率限制](https://static.api7.ai/uploads/2023/01/06/hkkLMlET_Hello%20World%20in%20OpenResty%20%2810%29.png)](https://api7.ai/ja/learning-center/openresty/flexible-dynamic-rate-limiting)

OpenResty (NGINX + Lua)

January 6, 2023

#### [OpenResty 中的动态速率限制](https://api7.ai/ja/learning-center/openresty/flexible-dynamic-rate-limiting)

\`lua-resty-limit-traffic\` の \`limit-req\`、\`limit-count\`、\`limit-conn\`、および \`limit.traffic\` の実装方法を学び、それらを使用してレート制限を行う方法を見ていきましょう。

[OpenResty](https://api7.ai/tags/openresty)

[NGINX](https://api7.ai/tags/nginx)

[Lua](https://api7.ai/tags/lua)

[![OpenRestyのキラー機能：Dynamic](https://static.api7.ai/uploads/2023/01/12/kluDFiQ6_Hello%20World%20in%20OpenResty%20%287%29.png)](https://api7.ai/ja/learning-center/openresty/openresty-killer-feature-dynamic)

OpenResty (NGINX + Lua)

January 12, 2023

#### [OpenRestyのキラー機能：Dynamic](https://api7.ai/ja/learning-center/openresty/openresty-killer-feature-dynamic)

Openresty 通过 LuaJIT 提供的动态特性，实现了 FaaS、边缘计算、动态上游等功能。

[OpenResty](https://api7.ai/tags/openresty)

[NGINX](https://api7.ai/tags/nginx)

[Lua](https://api7.ai/tags/lua)

[![OpenResty 中常用的三个 Lua Resty 库](https://static.api7.ai/uploads/2023/01/15/sIYDRQAH_Hello%20World%20in%20OpenResty.png)](https://api7.ai/ja/learning-center/openresty/lua-resty-libraries-in-openresty)

OpenResty (NGINX + Lua)

January 13, 2023

#### [OpenResty 中常用的三个 Lua Resty 库](https://api7.ai/ja/learning-center/openresty/lua-resty-libraries-in-openresty)

OpenRestyでよく使われるLua Restyライブラリを学びましょう: \`lua-resty-ngxvar\`、\`lua-rapidjson\`、そして\`lua-resty-worker-events\`です。

[OpenResty](https://api7.ai/tags/openresty)

[NGINX](https://api7.ai/tags/nginx)

[Lua](https://api7.ai/tags/lua)

[![OpenResty FAQ | 動的ロード、NYI、およびShared Dictのキャッシュ](https://static.api7.ai/uploads/2023/01/28/JNIy07vr_Hello%20World%20in%20OpenResty%20%289%29.png)](https://api7.ai/ja/learning-center/openresty/faq-4)

OpenResty (NGINX + Lua)

January 19, 2023

#### [OpenResty FAQ | 動的ロード、NYI、およびShared Dictのキャッシュ](https://api7.ai/ja/learning-center/openresty/faq-4)

この記事では、動的ローディング、ブロッキング操作、NYI（Not Yet Implemented）、動的アップストリーム、および共有辞書のキャッシュについて説明します。

[OpenResty](https://api7.ai/tags/openresty)

[NGINX](https://api7.ai/tags/nginx)

[Lua](https://api7.ai/tags/lua)

[![第1部：OpenRestyを使用してマイクロサービスAPIゲートウェイを構築する方法](https://static.api7.ai/uploads/2023/02/07/FY0wz1b6_43.png)](https://api7.ai/ja/learning-center/openresty/how-to-build-a-microservice-api-gateway-part-1)

OpenResty (NGINX + Lua)

January 20, 2023

#### [第1部：OpenRestyを使用してマイクロサービスAPIゲートウェイを構築する方法](https://api7.ai/ja/learning-center/openresty/how-to-build-a-microservice-api-gateway-part-1)

本記事では、マイクロサービスAPIゲートウェイの役割、コアコンポーネント、および概念について紹介します。

[OpenResty](https://api7.ai/tags/openresty)

[NGINX](https://api7.ai/tags/nginx)

[Lua](https://api7.ai/tags/lua)

[![第2部：OpenRestyを使用してマイクロサービスAPIゲートウェイを構築する方法](https://static.api7.ai/uploads/2023/02/07/FDLX3VMh_44.png)](https://api7.ai/ja/learning-center/openresty/how-to-build-a-microservice-api-gateway-part-2)

OpenResty (NGINX + Lua)

February 2, 2023

#### [第2部：OpenRestyを使用してマイクロサービスAPIゲートウェイを構築する方法](https://api7.ai/ja/learning-center/openresty/how-to-build-a-microservice-api-gateway-part-2)

API Gatewayの4つのコアコンポーネントであるストレージ、ルーティング、スキーマ、プラグインの技術選定について、それぞれ紹介します。

[OpenResty](https://api7.ai/tags/openresty)

[NGINX](https://api7.ai/tags/nginx)

[Lua](https://api7.ai/tags/lua)

[![第3部：OpenRestyを使用してマイクロサービスAPIゲートウェイを構築する方法](https://static.api7.ai/uploads/2023/02/07/3XJXY9Jy_45.png)](https://api7.ai/ja/learning-center/openresty/how-to-build-a-microservices-api-gateway-part-3)

OpenResty (NGINX + Lua)

February 3, 2023

#### [第3部：OpenRestyを使用してマイクロサービスAPIゲートウェイを構築する方法](https://api7.ai/ja/learning-center/openresty/how-to-build-a-microservices-api-gateway-part-3)

NGINX設定と初期化を通じてAPIゲートウェイを実行する方法、ルートとプラグインのマッチング、プラグインの読み込み、およびプラグインの作成に関する最小限の例を紹介します。

[OpenResty](https://api7.ai/tags/openresty)

[NGINX](https://api7.ai/tags/nginx)

[Lua](https://api7.ai/tags/lua)

[![OpenResty FAQ | OpenRestyの実践的な使い方](https://static.api7.ai/uploads/2023/02/12/jbv9M0zi_Hello%20World%20in%20OpenResty%20%283%29.png)](https://api7.ai/ja/learning-center/openresty/faq-5)

OpenResty (NGINX + Lua)

February 10, 2023

#### [OpenResty FAQ | OpenRestyの実践的な使い方](https://api7.ai/ja/learning-center/openresty/faq-5)

この記事では、OpenRestyの実践的な使用方法、OpenRestyのデータベースカプセル化、OpenRestyのWebフレームワーク、およびその他の問題について説明します。

[OpenResty](https://api7.ai/tags/openresty)

[NGINX](https://api7.ai/tags/nginx)

[Lua](https://api7.ai/tags/lua)
