Scaling question

How does resgate handle connection id information, is that cached in all instances or is it cached in 1 instance but other instances can access via a request?

Connection ID:s are only stored in the Resgate server receiving the connection.

The connection ID (or cid) is a unique ID for each HTTP/WS connection. New connection ID’s are generated for each HTTP request, even from the same client.

So, they are not to be mistaken for some session identifier, even if a websocket connection keeps the same connection ID for its entire duration

Sessions should instead be handled by a service, using auth requests.

Best regards,

that makes sense, thanks for the explanation.

1 Like