scalecube / scalecube-gateway

ScaleCube API Gateway is the single entry point for service consumers. handles incoming requests and proxy/route to the appropriate microservice instance.
Apache License 2.0
18 stars 7 forks source link

scalecube-gateway

ScaLecube API Gateway allows service consumers interact with scalecube microservices cluster.

image

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

io.scalecube scalecube-services-transport-protostuff ${scalecube.version} io.scalecube scalecube-services-discovery ${scalecube.version}