Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lunarianss/forest
Forest is a GRPC | TCP | HTTP protocol gateway ⚡️ high-performance microservices gateway
https://github.com/lunarianss/forest
gateway go grpc high-perfomance http proxy proxy-server server
Last synced: 1 day ago
JSON representation
Forest is a GRPC | TCP | HTTP protocol gateway ⚡️ high-performance microservices gateway
- Host: GitHub
- URL: https://github.com/lunarianss/forest
- Owner: lunarianss
- License: apache-2.0
- Created: 2024-02-19T08:46:55.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-04-30T11:51:20.000Z (9 months ago)
- Last Synced: 2024-10-31T03:16:57.505Z (3 months ago)
- Topics: gateway, go, grpc, high-perfomance, http, proxy, proxy-server, server
- Language: Go
- Homepage:
- Size: 184 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Forest
![icon](icon/forest.svg) Forest is a high-performance
gateway.## ✨ Features
- Supports multiple downstream node load balancing and provides a variety of load balancing strategies, such as random rounds, sequential rounds, consistent hash and weighted rounds.
- Supports Grpc, Tcp and Http protocol request forwarding with minimal overhead.
- Supports actively monitoring and probing the status of downstream nodes and updating the node status in real time.
- Supports distributed flow limiting in different level, such as second level flow limiting, hour level flow limiting and day level flow limiting.
- Supports multi-tenant authentication and authorization
- Supports protocol headers conversion
- Supports QPS statistics
- Support one-dimensional RPC and streaming RPC middleware.## System Architecture
![icon](icon/gateway.png)
## 🚀 Deploy
### Binary Executables
Mac/Linux:
```shell
sh goBuildUnix.sh
```Windows:
```shell
./goBuildWin.bat
```### K8s (Without Persistent Storage)
```shell
kubectl apply -f KubernetesDashboard.yaml
kubectl apply -f KubernetesProxy.yaml
```### K8s (With Persistent Storage)
PV and PVC is used to persistent storage log files.
```shell
kubectl apply -f KubernetesDashboardWithPv.yaml
kubectl apply -f KubernetesProxyWithPv.yaml
```### Docker
- **forest-gateway-dashboard:latest**
- **forest-gateway:latest**```shell
sh linuxDockerBuild.sh
```## 🛠️ Install
1. git clone
```shell
git clone https://github.com/Ryan-eng-del/Forest.git
```2. install dependencies
```shell
export GO111MODULE=on && export GOPROXY=https://goproxy.cn
cd Forest
go mod tidy
```3. customize config file in conf/dev | conf/prod
```shell
mysql.toml
redis.toml
proxy.toml
base.toml
```4. start server
**start control panel server**
```shell
go run main.go run -c ./conf/dev/ -p control
```**start proxy server**
```shell
go run main.go run -c ./conf/dev/ -p proxy```
**start proxy server and panel server**
```shell
go run main.go run -c ./conf/dev/ -p both
```## 📜 Representations
Forest gateway project is extracted from my company's gateway business, of course, at the same time, also refer to the online implementation of many gateway components, special thanks to the didi company's GateKeeper, gave me a lot of reference ideas. The future plan is to add business testing, and already performance testing.
## License
`forest gateway` is released under the Apache 2.0 license. See [LICENSE.txt](LICENSE.txt).