Hi everyone. Phenomenal job with the app, it’s really looking like it could replace reddit with no trouble.

I’m getting timeout issues though, every time I upvote something. I’m sure it’s nothing but I wanted to give you the heads-up.

One more suggestion is to make it easier to find communities on here! Then it’ll be perfect.

Thanks again :)

  • gkd
    link
    fedilink
    arrow-up
    12
    ·
    1 year ago

    I’ve noticed (although on the .ml instance) that even whenever GET requests go through fine (albeit a bit slow) POST requests don’t actually return a response. After 60 seconds they will timeout, even if the operation actually does complete successfully. This happens mainly on voting and making comments from what I see.

    • zalack
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      That’s pretty common. Database reads are much lighter operations than writes, and you can cache responses to heavily alleviate the strain of those requests.

      There’s no real way to get around database writes though. Each one of those has to go through the DB eventually. You can do things to mitigate it like putting the messages in a queue to be bul-inserted in batches, but it’s much harder to optimize write performance than it is to optimize reads.

      • gkd
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        Oh absolutely. I would expect the response to take longer. But what I’m saying is that even once the operation is complete, the server will not return a response to you. You can simply refresh to see that your request did go through, but you will still be waiting for a response.