0

In the ALB announcement there was mention of TCP and websockets, is it that WS are supported but through http configuration on the ELB listeners?

I am curious to know how AWS ALB supports web sockets if the supported protocols are HTTP and HTTPS only?

1 Answer 1

1

This new load balancer, which also supports the WebSocket protocol and HTTP/2, operates at the application layer and provides content-based routing support.

https://aws.amazon.com/about-aws/whats-new/2016/08/announcing-application-load-balancer-for-elastic-load-balancing/

The Websocket protocol was designed to be negotiated over an HTTP connection (though strictly speaking it could be run over other transports).

The WebSocket Protocol is designed to supersede existing bidirectional communication technologies that use HTTP as a transport layer to benefit from existing infrastructure

https://www.rfc-editor.org/rfc/rfc6455

However, this means that the infrastructure must support the necessary extensions to HTTP that websockets require in order to negotiate and operate.

ALB introduced support for these extensions.

ELB Classic Load Balancers did not support the extensions, so the only way to implement websockets in ELB Classic was to disable the HTTP features and run the balancer in a more transparent TCP mode, with instances behind the balancer that handled all of the websocket interactions.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.