io.scalecube:scalecube-services-gateway-netty

ScaleCube is a lightweight decentralized cluster membership, failure detection, messaging and gossip protocol library for the Java VM.


License
Apache-2.0

Documentation

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-jackson ${scalecube.version} io.scalecube scalecube-services-transport-protostuff ${scalecube.version} io.scalecube scalecube-services-discovery ${scalecube.version}