Re:IHP – A Haskell web framework
by keithnz on Monday November 23, 2020 @10:24PM
(#25194954)
Auto refresh seems a bit like phoenix's liveview? It sounds like the database hooks are a bit blunt, but I guess if your queries are low cost it could be quite responsive
[ Parent
| on HN ]
Yes, this is very similiar. We used it extensively to build IHP Cloud [0] where we have a lot of async background processing. AutoRefresh allows the view to be updated automatically when e.g. the deployment status changes without us writing any app-specific JS code. It's takes only a single line of haskell code, so it's implemented in seconds and then really just works :)
Would we have to use AJAX polling for that or would need to write Websocket Code manually, we'd need to spend way more time on that.