Hi rustaceans! What are you working on this week? Did you discover something new, you want to share?

  • GreenDot 💚@le.fduck.net
    link
    fedilink
    English
    arrow-up
    5
    ·
    edit-2
    7 months ago

    reverse proxy using tokio and hyper, there are few things to figure out on high traffic sites, it doesn’t work as well compared to nginx after a certain threshold.

      • GreenDot 💚@le.fduck.net
        link
        fedilink
        English
        arrow-up
        4
        ·
        edit-2
        7 months ago

        Yeah, I’m looking at it, will probably rewrite the logic using Pingora. or maybe I did something wrong. Not sure if its something using the hyper legacy client, that has connection pooling, maybe there’s something there to improve.

        or maybe the use of RwLock to share the config struct is reaching some limits. Will try using parking_lot to see if anything changes.

    • sugar_in_your_tea@sh.itjust.works
      link
      fedilink
      arrow-up
      2
      ·
      7 months ago

      That’s too bad, I was thinking of replacing our nginx proxy with Rust. We need a little logic, so we currently have nginx -> gateway service -> microservice, and I was hoping to drop nginx. Maybe I still can, but it sounds like there would be some tradeoffs.