Skip to content

The service API gateway, which uniformly receives external requests, performs load balancing to invoke the back-end service and returns the results.

Notifications You must be signed in to change notification settings

microcmpt/msa-api-gateway

Repository files navigation

msa-api-gateway

Installation

npm i msa-api-gateway

Quick Start

step1:找到服务网关根目录下的zk_app.js文件,配置里面服务注册中心地址:

CONNECTION_STRING=你的zookeeper地址,多个以,分割

step2:启动服务网关

pm2 start zk_app.js

step3:发送http请求

curl -H 'Application-Name:sampleConsumer' http://localhost:1025/api/hello/123

Application-Name:注册到注册中心时的应用名

About

The service API gateway, which uniformly receives external requests, performs load balancing to invoke the back-end service and returns the results.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published