1 Star 4 Fork 1

dinstone / agate

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 1.38 KB
一键复制 编辑 原始数据 按行查看 历史
dinstone 提交于 2024-02-28 15:08 . add docker support

Introduce

Agate is a cloud-native, fast, scalable, and async API Gateway. its core values are high performance and extensibility.

Dependency

  • Vert.x 4.3
  • Consul 1.7

Quick start

Startup gateway and admin

  • step1: pull source and build
git pull https://github.com/dinstone/agate.git

// build
cd agate
mvn clean package
  • step2: start agate admin and gateway

Windows:

cd agate-script
 .\agate-install.bat 

Linux:

cd agate-script
 ./agate-install.sh

or execute the following command:

cd agate
mvn clean install

cd agate-script
docker compose stop
echo y | docker compose rm
docker compose up -d
  • step3: test agate admin and gateway services
access agate admin using username/password = agate/123456 by url http://localhost:8888/	

Config Route and Url rewrite

  • Http URL Proxy:
http://localhost:4004/(?<url>.*) --> https://www.baidu.com/:url
  • Http Microservice Discovery:
http://localhost:4002/user-provider/(?<url>.*) --> http://user-provider/:url

Feature

  • Logging
  • Tracing
  • Metrics
  • Rate Limit
  • Circuit Breaker
  • Gray Deployment
  • Security Authenticate
  • Routing: Http Reverse Proxy
  • Routing: Http Service Discovery

Architecture

System Architecture

Other Documents

goto wiki https://github.com/dinstone/agate/wiki

Java
1
https://gitee.com/dinstone/agate.git
git@gitee.com:dinstone/agate.git
dinstone
agate
agate
master

搜索帮助