scalecube-gateway
ScaLecube API Gateway allows service consumers interact with scalecube microservices cluster.
Read about it here:
API-Gateway:
Available api-gateways are rsocket, http and websocket
Basic API-Gateway example:
Microservices.builder()
.discovery(options -> options.seeds(seed.discovery().address()))
.services(...) // OPTIONAL: services (if any) as part of this node.
// configure list of gateways plugins exposing the apis
.gateway(options -> new WebsocketGateway(options.id("ws").port(8080)))
.gateway(options -> new HttpGateway(options.id("http").port(7070)))
.gateway(options -> new RSocketGateway(options.id("rsws").port(9090)))
.startAwait();
// HINT: you can try connect using the api sandbox to these ports to try the api.
// http://scalecube.io/api-sandbox/app/index.html
Service API-Gateway providers:
releases: https://github.com/scalecube/scalecube-services/releases
- HTTP-Gateway - scalecube-services-gateway-http
- RSocket-Gateway - scalecube-services-gateway-rsocket
- WebSocket - scalecube-services-gateway-websocket