---
title: "API Gateway Apache APISIX と Kong の選択比較 - API7.ai"
description: "Apache APISIXとKongはどちらもオープンソースのマイクロサービスAPIゲートウェイです。そのため..."
url: "https://api7.ai/ja/blog/api-gateway-apache-apisix-and-kong-selection-comparison"
---

[Blog](https://api7.ai/ja/blog)

[Products](https://api7.ai/ja/category/products)[Technology](https://api7.ai/ja/category/technology)[Ecosystem](https://api7.ai/ja/category/ecosystem)[Case Study](https://api7.ai/ja/category/usercase)[Team & Community](https://api7.ai/ja/category/community)

Search

⌘ + K

[Blog](https://api7.ai/blog)

Products

# API Gateway Apache APISIX と Kong の選択比較

API7.ai

January 18, 2020

[Products](https://api7.ai/category/products)

[Apache APISIXとKong](https://api7.ai/blog/apisix-vs-kong-3-0)は、どちらもオープンソースのマイクロサービスAPIゲートウェイです。では、これらをどのように比較し、選択すればよいのでしょうか？

これらのプロジェクトは、完全なドキュメントとテストでカバーされており、多くのプロダクションユーザーが使用しているため、安定性や持続可能な開発について心配する必要はありません。この記事では、最も直接的で検証可能な機能とパフォーマンスに焦点を当て、異なる視点から比較を行います。

| **機能**             | **Apache APISIX** | **KONG** |
| ------------------ | ----------------- | -------- |
| **ダイナミックアップストリーム** | はい                | はい       |
| **ダイナミックルーター**     | はい                | はい       |
| **ヘルスチェック**        | はい                | はい       |
| **ダイナミックSSL**      | はい                | はい       |
| **L4およびL7プロキシ**    | はい                | はい       |
| **Opentracing**    | はい                | はい       |
| **カスタムプラグイン**      | はい                | はい       |
| **REST API**       | はい                | はい       |
| **CLI**            | はい                | はい       |

より詳細な比較は以下の通りです。

| **機能**                                          | **Apache APISIX**                        | **Kong**              |
| ----------------------------------------------- | ---------------------------------------- | --------------------- |
| 所属                                              | Apache Software Foundation               | Kong Inc.             |
| 技術アーキテクチャ                                       | Nginx + etcd                             | Nginx + postgres      |
| コミュニケーションチャネル                                   | メーリングリスト、Wechatグループ、QQグループ、GitHub、ミートアップ | GitHub、freenode、フォーラム |
| シングルコアCPU、QPS（limit-countおよびprometheusプラグイン有効時） | 18000                                    | 1700                  |
| レイテンシー                                          | 0.2 ms                                   | 2 ms                  |
| Dubbo                                           | はい                                       | いいえ                   |
| 設定ロールバック                                        | はい                                       | いいえ                   |
| TTL付きルート                                        | はい                                       | いいえ                   |
| プラグインホットローディング                                  | はい                                       | いいえ                   |
| カスタムLBおよびルート                                    | はい                                       | いいえ                   |
| REST API <--> gRPCトランスコーディング                    | はい                                       | いいえ                   |
| Tengine                                         | はい                                       | いいえ                   |
| MQTT                                            | はい                                       | いいえ                   |
| 設定有効時間                                          | イベント駆動、< 1ms                             | ポーリング、5秒              |
| ダッシュボード                                         | はい                                       | いいえ                   |
| IdP                                             | はい                                       | いいえ                   |
| 設定センターHA                                        | はい                                       | いいえ                   |
| 指定時間ウィンドウでの速度制限                                 | はい                                       | いいえ                   |
| Nginx変数をルーティング条件としてサポート                         | はい                                       | いいえ                   |

### パフォーマンス

limit-countおよびprometheusプラグインを有効にした後、Apache APISIXのパフォーマンスはKongの10倍です。

詳細な手順はこちら：<https://gist.github.com/membphis/137db97a4bf64d3653aa42f3e016bd01>、興味のある開発者は画像を参照して検証できます。

### なぜApache APISIXが優れているのか？

ここでは、機能とパフォーマンスの違いの背後にある理由について説明します：

1. Apache APISIXのルーティングの複雑さはO(k)で、uriの長さのみに関係し、ルートの数とは無関係です。Kongのルーティングの時間複雑さはO(n)で、ルートの数に比例して増加します。
2. Apache APISIXのIPマッチングの時間複雑さはO(1)で、大量のIP判断を行ってもCPUリソースを使い果たすことはありません。
3. Apache APISIXのルートマッチングは、Nginxのすべての変数を条件として受け入れ、カスタム関数をサポートします。他のゲートウェイにはいくつかの組み込み条件があります。
4. Apache APISIXはetcdを設定センターとして使用します。単一障害点がなく、任意のマシンがダウンしてもゲートウェイクラスターは正常に動作します。リレーショナルデータベースに基づく他のゲートウェイは単一障害点の問題を抱えています。
5. Apache APISIXの設定は、etcd watchを使用して1ミリ秒以内にすべてのゲートウェイノードに到達します。他のゲートウェイは定期的にデータベースをポーリングし、最新の設定を取得するのに通常5秒かかります。
6. Apache APISIXのプラグインは、高負荷下でもミリ秒レベルのレイテンシーを維持するように慎重に調整されています。
7. Apache APISIXの独自のプラグイン配置とローコード機能により、二次開発のハードルを大幅に下げることができます。

[さらに読む](https://api7.ai/ja/blog/why-choose-apisix-instead-of-nginx-or-kong)

Tags:

[API Gateway Concept](https://api7.ai/tags/api-gateway-concept)

[Alternatives to Kong](https://api7.ai/tags/alternatives-to-kong)

[Comparison to Competitors](https://api7.ai/tags/comparison-to-competitors)

Share article link

Share

Related Posts

[![LuaJITとは何か？APISIXがLuaJITを選ぶ理由](https://static.api7.ai/uploads/2024/09/06/n3fzQtjH_LuaJIT.png)](https://api7.ai/blog/apisix-chooses-luajit)

## [LuaJITとは何か？APISIXがLuaJITを選ぶ理由](https://api7.ai/blog/apisix-chooses-luajit)

[![Apache APISIXがWasm機能を実現する方法](https://static.api7.ai/uploads/2024/09/06/54B29TzW_Wasm-cover.png)](https://api7.ai/blog/how-apisix-supports-wasm)

## [Apache APISIXがWasm機能を実現する方法](https://api7.ai/blog/how-apisix-supports-wasm)

Table of Contents

- [パフォーマンス](#%E3%83%91%E3%83%95%E3%82%A9%E3%83%BC%E3%83%9E%E3%83%B3%E3%82%B9)
- [なぜApache APISIXが優れているのか？](#%E3%81%AA%E3%81%9Capache-apisix%E3%81%8C%E5%84%AA%E3%82%8C%E3%81%A6%E3%81%84%E3%82%8B%E3%81%AE%E3%81%8B)

## Related Posts

[![オープンソースAPIゲートウェイのパフォーマンス比較：APISIX 3.0とKong 3.0](https://static.api7.ai/uploads/2024/09/06/IBbEBM0F_Performances.png)](https://api7.ai/ja/blog/apisix-kong-3-0-performance-comparison)

Products

November 3, 2022

#### [オープンソースAPIゲートウェイのパフォーマンス比較：APISIX 3.0とKong 3.0](https://api7.ai/ja/blog/apisix-kong-3-0-performance-comparison)

本記事では、Apache APISIX 3.0とKong 3.0の性能比較を4つのテストを通じて紹介します。

[APISIX Basics](https://api7.ai/tags/apisix-basics)

[Alternatives to Kong](https://api7.ai/tags/alternatives-to-kong)

[Comparison to Competitors](https://api7.ai/tags/comparison-to-competitors)

[![なぜApache APISIXが最適なAPIゲートウェイなのか？](https://static.api7.ai/2022/10/03/633a3d046fa57.webp)](https://api7.ai/ja/blog/why-is-apache-apisix-the-best-api-gateway)

Products

September 13, 2022

#### [なぜApache APISIXが最適なAPIゲートウェイなのか？](https://api7.ai/ja/blog/why-is-apache-apisix-the-best-api-gateway)

We will analyze multiple API gateways in terms of the popularity among developers, their open source licenses, their performances, and the ecosystem as a whole.

[APISIX Basics](https://api7.ai/tags/apisix-basics)

[API Gateway Concept](https://api7.ai/tags/api-gateway-concept)

[Comparison to Competitors](https://api7.ai/tags/comparison-to-competitors)

[![API7 EnterpriseがシームレスなSOAP統合を実現](https://static.api7.ai/uploads/2024/01/23/Er1eYEhg_SOAP.png)](https://api7.ai/ja/blog/api-7-enterprise-soap)

Products

May 24, 2023

#### [API7 EnterpriseがシームレスなSOAP統合を実現](https://api7.ai/ja/blog/api-7-enterprise-soap)

最新版本的API7 Enterprise Edition现已支持并可与SOAP集成，为您提供完美的解决方案。

[API7 Enterprise](https://api7.ai/tags/api7-enterprise)

[API Gateway Concept](https://api7.ai/tags/api-gateway-concept)

[SOAP](https://api7.ai/tags/soap)
