Re:A minimalistic site to vent and see others doing the same...
by vorticalbox on Wednesday January 27, 2021 @12:50AM
(#25924775)
I'm not sure why there is a database at all, if you want messages to just appear and not stick around you could do this over websockets and never need to touch a database
[ Parent
| on HN ]
Re:A minimalistic site to vent and see others doing the same...
by VentScape on Wednesday January 27, 2021 @02:37AM
(#25925369)
I'm brand new to full stack so I have no idea what I'm doing. Kind of figuring it out as I go along. Decided to start with short polling since I was having trouble getting websockets working and just wanted to get a v1.0 out in the wild.
Switching over to websockets eventually is 100% on my mind, but I have a near infinite amount of work to do on all fronts so we'll see when I have time!
Re:A minimalistic site to vent and see others doing the same...
by dstick on Wednesday January 27, 2021 @02:50AM
(#25925454)
Good on you. Learning about DB structure is far more important than websockets when starting out full-stack. You’d need to run your own websocket server anyway or pay through the nose for a service like Pusher (or stay on the free tier and not learn a single thing about either).
You choose well! Nice job, keep at it :)
Re:A minimalistic site to vent and see others doing the same...
by friend-monoid on Wednesday January 27, 2021 @05:28AM
(#25926485)
I agree absolutely - just want to add that learning when not to use a db, which db to use when you need one, and which network protocols to use for an application, is also important
Re:A minimalistic site to vent and see others doing the same...
by maximp on Wednesday January 27, 2021 @10:08AM
(#25929067)
Not sure what your backend is, but websockets are pretty straightforward with socket.io! Happy to help get you up to speed - don't hesitate to reach out (@maxverse on twitter, email in profile)
Great job figuring things out as you go, and I love the experience. Keep up the good work!