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

Use NonBlockingHashMapLong instead of Map on websocket sessions #138

Closed artem-v closed 3 years ago

artem-v commented 4 years ago

In io.scalecube.services.gateway.ws.WebsocketGatewaySession line 27 private final Map<Long, Disposable> subscriptions = new NonBlockingHashMapLong<>(1024); change Map -> NonBlockingHashMapLong.

In io.scalecube.services.gateway.transport.websocket.WebsocketSession lines 40-41 private final Map<Long, Processor<ServiceMessage, ServiceMessage>> inboundProcessors = new NonBlockingHashMapLong<>(1024); change Map -> NonBlockingHashMapLong.

artem-v commented 3 years ago

Done already.