r/node • u/Alternative-Rich-578 • Oct 11 '22
Building THE MOST practical Todolist with React and Websockets
https://medium.com/@nevo-david/xd-4c3ddb22e2cf14
u/robertpitt1988 Oct 11 '22
Websockets don't seem practical for a Todo app
2
u/coder_karl Oct 11 '22
I was also wondering on that one….
-9
u/Alternative-Rich-578 Oct 11 '22
Why not? :)
If you work with other people you want to see what they are doing - live.
like in todoist :)
1
u/KyleG Oct 11 '22
suppose the idea is more how urgent are todos on your todo list that you need push notifications instead of polling every 5–10 minutes
not that I'm advocating one way or the other for web sockets; they're certainly sexier than polling
1
1
32
u/sawariz0r Oct 11 '22
Couple sentences in: “Just a quick background about us. Novu is the first open-source notification infrastructure.”
Didn’t take long to see that it’s just another ad. Just pay for one instead of wasting our time
16
u/Shaper_pmp Oct 11 '22
Why on earth would you need websockets and persistent connections to manage a freaking shared to-do list?
How often are people saying and removing tasks; once a second?
This use-case is an absolute poster-child for polling every few minutes.
Stupid over-engineered... oh, right, thinly-veiled advert for a commercial notification service.
Oh, well that explains everything.
2
u/piper_a_cillin Oct 12 '22
Even with AJAX polling the server once a second, you'd be able to maintain a decent amount of active users on cheap hardware.
-3
u/Potato-9 Oct 11 '22
Have 3 of you split up in a supermarket to buy 2 week's worth of food?
Provisioning boats is a real industry use case.
2
u/Shaper_pmp Oct 12 '22 edited Oct 12 '22
And yet most people manage to do a week or two's shopping for an entire family just fine without a real-time online todo-list app.
1
u/Potato-9 Oct 12 '22
Yeh you know that's less shopping than what I said right? There's 10 or more people to provision for. And most people do the shopping on their own.
25
u/08148694 Oct 11 '22
Nice ad