Hacker News new | ask | show | jobs
by dirkg 2305 days ago
Precisely. DDP is also based on WebSockets and does essentially the same thing - server side computation, client side optimistic UI updates, caching etc.

As with any stateful solution it has problems scaling. I'm not sure LiveView is the right answer.

1 comments

From what I understand the number of open websocket connections is not really much of an issue, because this is one of the things Phoenix/Elixir excel at.

Memory might become an issue though, I suppose. Every user's state will be in-memory in 'their' LiveView process.

On the other hand, there's much less state needed than with a client-side solution like React, because it can be very quickly fetched when needed.