Kong API Gateway 是一个流行的 API 网关解决方案,提供了丰富的插件来增强其功能。以下是一些常用的 Kong 插件及其用途:
身份验证插件:
- JWT Auth:用于验证 JWT 令牌。
- Key Auth:基于 API 密钥的身份验证。
授权插件:
- RBAC:基于角色的访问控制。
- Key Auth:同样用于基于 API 密钥的授权。
日志和监控插件:
- Prometheus Exporter:用于将指标发送到 Prometheus。
- Datadog Exporter:用于将日志和指标发送到 Datadog。
缓存插件:
- Redis:使用 Redis 缓存请求。
- Memcached:使用 Memcached 缓存请求。
路由和流量管理插件:
- Rate Limiting:限制 API 的请求速率。
- Circuit Breaker:在系统负载过高时断开流量。
更多详细信息,请参考官方文档。
JWT Auth:用于验证 JWT 令牌。
Key Auth:用于身份验证和授权。
Prometheus Exporter:将指标发送到 Prometheus。
Redis:使用 Redis 缓存请求。
Rate Limiting:限制 API 的请求速率。