3 ms·
I assume Django LiveView is directly inspired by Phoenix LiveView. It's essentially diffing template expansion on the backend and sending patches to the fronte
by aeonfox 9mo ago
I assume Django LiveView is directly inspired by Phoenix LiveView. It's essentially diffing template expansion on the backend and sending patches to the frontend via websockets where JS then applies the patches. Clicks and other interactions are also transmitted to the backend where state for the socket is updated and the template is reevaluated, hence completing the loop.
- andros 9mo agoThe concept is correct, but it's a bit simpler Its architecture is explained in the documentation, that's why it's so fast!
- zie 9mo agoI looked(admittedly briefly) and couldn't find the architecture explanation in the docs here: https://django-liveview.andros.dev/docs/ https://django-liveview.andros.dev/docs/
- andros 9mo agoI apologize, I assumed the architecture would be understandable from the examples. I'll keep that in mind!
- aeonfox 9mo agoThe docs lead to a 403, but I'd be curious to know how it is simpler. I believe the Phoenix version uses Erlang iolists and immutability to make diffing more efficient, and perhaps the Django version has something similar?
- zie 9mo agosorry, try this: https://django-liveview.andros.dev/docs/install/ https://django-liveview.andros.dev/docs/install/ Though it doesn't answer your question, the link at least works :)