this post was submitted on 05 Jul 2023
37 points (91.1% liked)
wefwef
4216 readers
1 users here now
wefwef is now Voyager! Subscribe to !voyagerapp@lemmy.world.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
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.