FaaS integrates with the serverless platform Knative.
Service Discovery integrates with Eureka, Consul, Etcd, and Zookeeper.
Ingress Controller integrates with Kubernetes as an ingress controller.
Extensibility
WebAssembly executes user developed WebAssembly code.
High Performance and Availability
Adaption: adapts request, response in the handling chain.
Validation: headers validation, OAuth2, JWT, and HMAC verification.
Load Balance: round-robin, random, weighted random, IP hash, header hash and support sticky sessions.
Cache: for the backend servers.
Compression: compresses body for the response.
Hot-Update: updates both config and binary of Easegress in place without losing connections.
Operation
Easy to Integrate: command line(egctl), Easegress Portal, HTTP clients such as curl, postman, etc.
Distributed Tracing
Built-in OpenTelemetry, which provides a vendor-neutral API.
Observability
Node: role(primary, secondary), raft leader status, healthy or not, last heartbeat time, and so on
Traffic: in multi-dimension: server and backend.
Throughput: total and error statistics of request count, TPS/m1, m5, m15, and error percent, etc.
Latency: p25, p50, p75, p95, p98, p99, p999.
Data Size: request and response size.
Status Codes: HTTP status codes.
TopN: sorted by aggregated APIs(only in server dimension).
AI Integration
Proxy: proxy requests to LLM providers like OpenAI, DeepSeek, Anthropic, etc.
Anthropic API Adaption: adapts requests and responses in Anthropic API to OpenAI format.
Vector Database: integrates with vector databases for caching.
Monitoring: provides insights into the performance and usage of AI models.
Getting Started
The basic usage of Easegress is to quickly set up a proxy for the backend servers.
Launch Easegress
Easegress can be installed from pre-built binaries or from source. For details, see Install.
Then we can execute the server:
bash
$ easegress-server
2023-09-06T15:12:49.256+08:00 INFO cluster/config.go:110 config: advertise-client-urls: ...
...
By default, Easegress opens ports 2379, 2380, and 2381; however, you can modify these settings along with other arguments either in the configuration file or via command-line arguments. For a complete list of arguments, please refer to the easegress-server --help command.
After launching successfully, we could check the status of the one-node cluster.
bash
$ egctl get member
...
$ egctl describe member
...
Reverse Proxy
Assuming you have two backend HTTP services running at 127.0.0.1:9095 and 127.0.0.1:9096, you can initiate an HTTP proxy from port 10080 to these backends using the following command:
Easegress Portal is an intuitive, open-source user interface for the Easegress traffic orchestration system. Developed with React.js, this portal provides config management, metrics, and visualizations, enhancing the overall Easegress experience.
Screenshots
1. Cluster Management
2. Traffic Management
3. Pipeline Management
Community
Open GitHub issues for bugs, feature requests, questions, and documentation problems.