Discord: A case study in performance optimization

(newsletter.fullstack.zip)

32 points | by tylerdane a day ago ago

11 comments

  • nmilo 35 minutes ago

    I find it funny that backend devs will do all this infrastructure work to support billions of real time messages and then frontend devs stomp all over it by making the app take 500MB of RAM and hundreds of ms to take basic actions.

    • tylerdane 2 minutes ago

      It's a fair point. I think loss-aversion over React (Native) is to blame.

      Their current client stack is: Web: React Desktop: React + Electron Mobile: React Native + Native

      Their commitment to React on so many platforms makes it easy to accumulate bloat. Their need to support lower-level features means they can't avoid native code altogether.

      I wonder why they stick with it.

      My guess is they don't want to add more hires just for this problem

      Their 2018 commitment to RN: https://discord.com/blog/why-discord-is-sticking-with-react-...

      Their 2025 complications with it: https://discord.com/blog/supercharging-discord-mobile-our-jo...

    • ronsor 32 minutes ago

      One runs on machines we pay for (= costs us money). Another runs on end users' machines (= costs them money).

      • alecco a minute ago

        But it affects user experience.

  • jimmiles 2 hours ago

    Couldn't they focus some of their creativity on making the UI look less like the inside of a middle schooler's brain?

    • ipdashc 2 hours ago

      In what ways does it look that way, if you recall?

      I hear this semi-often, but I don't really get it. The base UI of Discord is pretty normal / looks just like every other chat app out there. Is it the ads for nitro and stuff like that were the issue?

      • ronsor 2 hours ago

        I think the base UI of Discord is fine, but having used it for almost a decade at this point, the UI has gotten worse. Besides the ads you've mentioned, they've added a lot more clutter (random icons, rarely used features, hidden menus, etc.). When I look at screenshots from 2019, I weep.

      • mtndew4brkfst an hour ago

        Animated server logos, colorful /gradient and tonally-varied usernames & avatars, the super emoji or whatever they're called, etc all feel like they're pushing more towards Twitch chat than anything else. Which as another commenter remarked, is essentially aligned with their original and biggest target demographic.

        • logicprog 16 minutes ago

          I like those things tbh. A lot of it helps make things more visually interesting, and other users more distinctive.

    • ronsor 2 hours ago

      Why would they make their UI less familiar to their target audience?

  • alterom 2 hours ago

    Sorry, nobody cares.

    A more pertaining article:

    Discord: a case study in shooting yourself in the foot by having ties to Peter Thiel's Palantir [1].

    [1] https://www.pcgamer.com/software/platforms/oh-good-discords-...