this post was submitted on 05 Jul 2023
82 points (93.6% liked)
wefwef
4214 readers
1 users here now
wefwef is now Voyager! Subscribe to [email protected].
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
The app is shitty dealing with the shitty server performance. Instead of working with timeouts and waiting for a 200 the app just dies. There are better ways to gracefully fail. Especially on these broken ass servers.
Somebody needs to start making people pay for servers but nobody here (not you) wants to havea real conversation about how to pay for costs.
Actually, I'm guessing wefwef is using the Js client, which usually returns a 503 or 500 when something goes to shit on the instance.
I'm also developing an app for Lemmy and the only solution I found was to just keep request the data until the instance finally gives in to the pressure and works.
So it's less about "server is taking too long to respond" and more like "server responds instantly with a 503" because it's overloaded and can't handle any incoming requests.
I'm also guessing a lot of traffic comes from comments since the way of loading those is kinda stupid. (You load only the top layer and then for each comment you request the children, which sums up to a huge number of requests).
Lemmy should add more convenient APIs to reduce the amount of requests being made, maybe I'll do that myself once I'm done with the app.
Sorry for the long ass text.