Re:WAMP – Web Application Messaging Protocol
by chrisco255 on Thursday May 31, 2018 @05:20PM
(#17200390)
Why did HTTP/2 impact Websocket's usage? Websockets are still used for real-time server-client communication in many application stacks.
If your use-case for Websockets was "make a bunch of concurrent RPC requests without the browser queuing them" then you can achieve the same concurrency semantics using regular AJAX REST calls, as long as they happen to transit over HTTP/2. For a lot of people, that was all they wanted.
As well, if you add a single SSE channel to that, riding in the same HTTP/2 socket, you now can do everything Websockets can do.
And if you throw a web server like Caddy between your HTTP/2 clients and your application server, now your app server can just be implemented in terms of regular HTTP/1 request-handling, with no need to implement any connection-oriented protocols at all.
Re:WAMP – Web Application Messaging Protocol
by Can_Not on Saturday June 02, 2018 @08:04AM
(#17214175)
Can you clarify what mainstream backend frameworks support any of those?
Re:WAMP – Web Application Messaging Protocol
by sametmax on Friday June 01, 2018 @12:53AM
(#17202693)
Websockets and http2 don't serve the same purpose. You server code rarely manipulate the http2 stack directly and it's essentially used to serve ressources while websocket is more about pushing notification, giving real time control on knobs and such.
Beside, wamp made to be is used outside the web. You use it to make your server side services talk to each others. Or for iot.
This happened right as IDL codegens like Thrift also stopped being talked about, and when people did again, it was all about gRPC, which runs over HTTP/2. This didn't help Websocket either.
Projects like this are especially interesting because they genuinely deliver what they claim to do, but to most people they exist in an alternate universe they've never heard about.