How Rust Fixed Discord’s Latency Issues #javascript #python #web #coding #programming

preview_player
Показать описание

Animation tools: Adobe Illustrator and After Effects.

Checkout our bestselling System Design Interview books:

ABOUT US:
Covering topics and trends in large-scale system design, from the authors of the best-selling System Design Interview series.
Рекомендации по теме
Комментарии
Автор

The Go maintainers found out about this after Discord switched, and realized it was actually an edge case with the GC and fixed this very shortly after. This happened back in 2016. Also, to be fair, whenever you write something the second time, you know what to expect and tend to do it better.

p.
Автор

“For your next project with a 10 users spike, consider using Rust”

brunocabral
Автор

also note that, discord switched from Cassandra to ScyllaDB and it was a big performance gain.

samiulislamsharan
Автор

I'm a programmer. I always enjoyed how some giant online services were forced to create clever solutions in order to fix issues like this, and some times even creating new technical forms of iteration, to increase efficiency.
From games to Streaming services and even food apps are responsible for some of the best languages and web services we have today. And some of them were created by a single developer.

Canilho
Автор

When I worked for Expedia, a big part of our job was watching the pattern of Java garbage collection spikes in recent releases. Stuff that worked great in test environments would sometimes still have to be rolled back when it hit high volume production, only because the garbage collection pattern became too unstable.

WilliamDye-willdye
Автор

If Discord keeps growing, they will need to write it in assembler to be fast enough..

Qefx
Автор

Im an ios developer. I tried Rust last summer for one of our lambda service. It was a pleasant to work with

setoelkahfi
Автор

I’m using rust for the first time coming from a JavaScript background. 😅 using it for a tts reader. It’s working great.

GorillaRezin
Автор

Excellent video. Do you have a longer format of the same video. I would like to know more about this.

Earl.Norris
Автор

If I remember correctly, it was a few years ago and since then, golang has significantly improved its garbage collector. Maybe they won't face this issue anymore with golang soon after some language updates

mtifw
Автор

Rust solves a problem that only a tiny fraction of real world sites have while introducing the complexity of memory management. Adopting Rust as your startup language is a case of premature optimisation at the cost of a more rapid development.

bernardd
Автор

after rust performance went down by micro seconds, not milli

MarceloAX
Автор

Discord is switching everyday, from mongo to cassandra to scylla, and now from go to rust. what else 🤣

mhjabbari
Автор

On the contrary, we are currently rewriting some mechanisms for removing an unused resource from instant deletion to delayed deletion, because instant one can provoke a squall of spinlocks.

olegmakarikhin
Автор

For your next project, consider "wordpress". Don't you think choice depends on the need? Not everyone is making Discord.

sepgh
Автор

Yes, for your next highly available massive realtime data project with tens of millions of users use rust... For everything else though... GC is probably fine. Use go... Or whatever other language helps you ship faster.

ycombine
Автор

You can use in Java GraalVM native-image to prevent GC at all.

LadislavJech
Автор

meanwhile, just yesterday I tried just to login to their app, and gave up due to latency.

ElonMuskTheOne
Автор

Very soon we will start using assembly for backend development just to spite the frontend developers 😂

albertdadzie
Автор

You forgot to add you should reserve 1 year rust learning bootcamp for devs starting new project.

rafatomczyk