by kellengreen · 2y ago · 0 comments
Websockets get really complex to scale past a certain level of use.
Any day now: https://www.google.com/intl/en/ipv6/statistics.html
I've been using IPv6 more recently, and one nice thing as a developer is being able to use the same IP address for local connections and internet connections. Simplifies managing TLS certs for example, since the IP address used by Let's Encrypt is the same one I'm connecting to while developing.
This might be the best thing about Elixir/Phoenix LiveView. I haven't actually had to care in quite some time :-) (though to be fair, I keep things over the websocket pretty light)
AWS you can use NAT Gateways for 6to4 and do v6 only subnets
Damn, that’s a huge downside
So depending on how much the phone needs to utilizes the radio, the higher the power level is?
That’s just my theory though.
edit: From the article: To workaround the limitation you have to use HTTP/2 or HTTP/3 with which the browser will only open a single connection per domain and then use multiplexing to run all data through a single connection.
I think the article calls this out. There is still a limit on the number of logical connections, but it's an order of magnitude larger.
For HTTP 1, simply shard the domain.
Edit: of course you could use: https://caniuse.com/sharedworkers but android does not support it. We migrated to the lib because safari took its time… so mobile was/is not a thing for us
I wonder why they didn't just a multipart streamed response.
Supports my metadata, very commonly implemented format
But yes it's the superior (simplest, most robust, most performant and scalable) way to do real-time for eternity.
The browser is dead, but SSE will keep on doing work for native apps.