Deploy Now

Stars

8,913

Forks

3,106

Watchers

289

Developer links

Apache ShenYu

Put one governed doorway in front of every service you run: Apache ShenYu is an API gateway that proxies, secures, and manages traffic for HTTP, Dubbo, gRPC, WebSocket, and MQTT backends from a single entry point. Every request flows through an ordered, hot-pluggable plugin chain, so you compose exactly the behavior each route needs instead of accepting a fixed gateway feature set. Selectors give you coarse, service-level routing and rules refine it down to individual methods, matched against headers, paths, and parameters. Authentication and edge security come from JWT, OAuth 2.0, request-signing, and WAF plugins, while rate limiting, circuit breaking, and load balancing protect fragile upstreams from traffic spikes. You reshape calls in flight with request, response, and parameter mapping, and convert protocols so a gRPC or Dubbo service answers ordinary HTTP clients. Newer releases add AI gateway plugins that proxy LLM calls with prompt processing, token limits, and sensitive-word filtering, plus an MCP server plugin for exposing tools to AI agents. The ShenYu Admin console on its own port manages plugins, selectors, rules, users, and permissions, then pushes changes live to every gateway replica over WebSocket, ZooKeeper, Nacos, etcd, or HTTP long polling. Metrics, tracing, and logging plugins stream operational data to Kafka or Elasticsearch, and client SDKs for Java, Go, Python, and .NET let services register themselves automatically. Running on a dedicated VPS on RepoCloud with guaranteed CPU, RAM, and SSD, full root SSH access, and a browser serial console. Apache-2.0 licensed.

Apache ShenYu
Apache ShenYu
Apache ShenYu
Apache ShenYu
Apache ShenYu

Benefits

  • One Gateway, Every Protocol
  • HTTP, Dubbo, gRPC, WebSocket, and MQTT services share one entry point, so clients stop juggling per-protocol endpoints while you govern all traffic in one place.
  • Live Configuration, Zero Restarts
  • Edit plugins, selectors, and rules in the Admin console and watch changes sync to every gateway replica over WebSocket, ZooKeeper, Nacos, or etcd within seconds.
  • Edge Security Built In
  • JWT, OAuth 2.0, request signing, and WAF plugins authenticate and filter traffic before it reaches services, replacing bespoke auth code in every backend.
  • Traffic Control Protects Upstreams
  • Rate limiting, Resilience4j circuit breaking, and load balancing absorb spikes and isolate failing services, keeping one bad upstream from cascading across the platform.

Features

  • Hot-Pluggable Plugin Chain
  • An ordered chain of responsibility runs divide, rewrite, sign, WAF, and custom Java or WASM plugins per request, swappable at runtime without redeploying the gateway.
  • Selectors and Rules
  • Two-level routing matches coarse selectors at service level and fine rules at method level against headers, paths, and parameters for precise traffic steering.
  • AI and MCP Plugins
  • AI proxy plugins route LLM traffic with prompt processing, token limits, and sensitive-word filtering, while the MCP server plugin exposes tools over SSE and HTTP.
  • Multi-Registry Data Sync
  • Configuration syncs from Admin to gateways via WebSocket by default, or ZooKeeper, Nacos, etcd, and HTTP long polling for existing infrastructure.
  • Observability Plugins
  • Metrics, tracing, and logging plugins export request data, with Kafka and Elasticsearch logging destinations and email or DingTalk alerts from Admin.

Apps Similar to Apache ShenYu