Hacker News new | ask | show | jobs
by nerdywordy 2136 days ago
I'm totally sold on server rendered, HTML over the wire web apps. What I'm not sold on is websockets for the transport layer.

Unless you truly need real-time, I'd argue that something like HTMX (https://htmx.org) is a much simpler and more reliable route. Simple HTTP calls keep the request stateless and give architectural freedoms that shouldn't be taken for granted.

1 comments

Most of Hotwire uses regular HTTP requests. Web sockets are only used for broadcasting real-time updates. (Basically anything you’d traditionally use polling for.)