ScaleCube API Gateway is the single entry point for service consumers. handles incoming requests and proxy/route to the appropriate microservice instance.
This part only for WebSocket gateway acceptor so far.
I need to add more audit stuff and it should write all incoming and outgoing traffic/content.
I guess the context approach (reactor.util.context.Context) can be used for it. And need to add something similar to the following invocation of two interfaces:
As you can see WebsocketRequestInterceptor returns a new context instance which should be used with reactor.core.publisher.Mono#subscriberContext(java.util.function.Function<reactor.util.context.Context,reactor.util.context.Context>) and this context will go along with the request.
Also, it can be a replacement for invoking GatewayMetrics, it means it can be pluggable.
This part only for WebSocket gateway acceptor so far.
I need to add more audit stuff and it should write all incoming and outgoing traffic/content. I guess the context approach (
reactor.util.context.Context
) can be used for it. And need to add something similar to the following invocation of two interfaces:As you can see
WebsocketRequestInterceptor
returns a new context instance which should be used withreactor.core.publisher.Mono#subscriberContext(java.util.function.Function<reactor.util.context.Context,reactor.util.context.Context>)
and this context will go along with the request.Also, it can be a replacement for invoking
GatewayMetrics
, it means it can be pluggable.WDYT guys?