Microservice with a Websocket transport

In this post, we will look at a simple component to publish market data and accept orders. How can this be accessed using websockets as a transport?

Our service

Interface for messages from the client to the server
public interface GUIGateway {
    void enableMarketData(boolean enabled);
    void newOrder(Order order);
}
Interface for messages from the server to the client
public interface GUIGatewayListener {
    void market(MarketData marketData);
    void order(OrderStatus orderStatus);
}
Peter Lawrey

Peter Lawrey

Most answers for Java and JVM on StackOverflow.com (~13K), "Vanilla Java" blog with four million views, founder of the Performance JUG, Java Champion

Read More
comments powered by Disqus
Microservice with a Websocket transport
Share this