Situation: Have Video Stream app built on MERN with `LIKE` feature. Problem: From FE, when I make a POST req for `LIKE` to BE, it updates DB and returns success:true. But it takes some time and thus like is delayed on FE and user has to wait for appx 2s. What's a non-hacky Solution to this?
1
0
Replies
Sounds like the back-end is struggling to keep up? I don't have any experience with MongoDB, but I've generally used mysql / redis and they've been pretty fast with not much delay. Under load is a different story, but generally Redis cache layer has solved that for me.
1
0
Oh gotcha! Thanks
0
0