Developer fighting 502s from Lemmys Servers.

  • 0 Posts
  • 8 Comments
Joined 1 year ago
cake
Cake day: July 2nd, 2023

help-circle







  • I’m a FSE and I use GitHub copilot and Perplexity. I wouldn’t want to code without them anymore.

    I want to get things done (especially when I’m at work) and not spent time reading docs or having 20 tabs of stackflow open. I’ve had enough of that lol.

    I think everyone here knows copilot but perplexity is a lot smaller and newer. It’s basically like chatgpt but faster and it googles stuff, giving sources for each claim that I can read for myself.

    For example, for my latest project I decided to give tailwind a try and instead of having to look through the docs for every little thing I just ask perplexity and it sums it up for me, even giving examples.

    And I use copilot a lot for mundane tasks, for example when I write an API that takes an object of type Foo, Copilot auto Fills making variables and checking each for nulls and then I use that API in the frontend copilot already knows what I’m about to do and auto-fills the fetch.



  • 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.