*Timestamps* 0:00 Intro (Keith Adams) 1:26 Agenda 2:37 Scale and Style 6:18 Architecture Overview 8:19 Logging in 14:11 MySQL Shards 18:18 RTM.start payload 19:51 Message server 24:32 Deferring Work 27:39 Putting it all together 31:41 Challenges 32:59 Challenge 1: Mains Failure 34:14 Challenge 2: Rtm.start for large teams 35:02 Challenge 3: Mass reconnects Plan of attacks 35:50 Scale-out mains 37:04 Rtm.start for large teams 38:33 Mass reconnects 41:45 Stuff left out 43:19 Wrapping up 44:20 Questions
@pathoslp4 жыл бұрын
🐐
@cerberuspandora5 жыл бұрын
I love how honest this guy is
@ridhwaans4 жыл бұрын
which part
@wonderstruck.3 ай бұрын
Very interesting talk. Usually you hear people from huge established companies discussing massive arch migrations, or brand new startups showing off their flashy new stack. This was a very humble, grounded talk on what it’s like to work in a real system architecture-what works for them, and what could be improved as they scale.
@tommyls43572 жыл бұрын
I love how articulate he is. He comes across as a smart guy. I'd like to work with him.
@BillaCode Жыл бұрын
I realised after 4 years of experience working in software field, I still don't have basic knowledge of making a high scalable app. Great video, thanks for sharing this great knowledge
@sanjay_nk4 жыл бұрын
Handling great scale with simplicity in design. Excellent !!
@Super21Nash4 жыл бұрын
Slack in 2016 was a pretty new app, and I completely respect the devs decisions to favor faster deployment. I have experience with a product which is almost 10 yr+ old and - we are still scrambling for DB alerts.
@nitrovent3 жыл бұрын
I feel with you. We have a large SharePoint Farm solution that is ~10 years old we work on
@janvikalra_4 ай бұрын
SUPER insightful and detailed deep dive. thanks for sharing!
@simonc9973 жыл бұрын
At 18:00, can someone help me understand what he means by the left and right heads, writing left and writing right?
@karana22603 жыл бұрын
active-active can run into collisions when same data is updated in both parallely. Think your profile updated from phone and laptop simultaneously and one gets updated on Master1 and other on Master2. which one is the correct one? Time stamps could solve these collisions but manual intervention is needed sometimes there too. To solve this I think they have partitioned the queries (based on team id Keith says, but I think it would be more complex ) such that certain group goto Master 1 only and nver to master 2 , and vice-versa. Avoiding conflicts.
@zacklight2 жыл бұрын
@Karan A Yeah it made no sense if the parition was just based on teamId because in that profile example the teamId's should be the same and so both requests go to the same master without introducing any conflict...
@shimaozheng99682 жыл бұрын
@12:19 what does it mean when he mentioned the time to the shard is arbitrary? It means it just randomly picks up a shard and record it? What's the benefit of doing in this way vs. consistent hashing?
@gilad-drori2 жыл бұрын
Maybe due to the thundering hoard effect.
@augusto31135 жыл бұрын
I just wish the "Microsoft Teams" would watch this and learn to not suck
@arunsatyarth90974 жыл бұрын
There is nothing great about this design btw.
@lattelover71864 жыл бұрын
@@arunsatyarth9097 No need a fancy architecture if the classic one get the job done and still easier to maintain.
@arunsatyarth90974 жыл бұрын
@@lattelover7186 I didnt say the word "fancy". I just said there is nothing in particular here for Teams folks to look at and learn as OP suggests.
@YourAliasIsNotAvailable3 жыл бұрын
@@lattelover7186 "easier to maintain" on a 1M loc monolith php app... Do you even code?
@pengdu77514 жыл бұрын
this may be a dumb question but why is there a message server in the first place? why a separate service?
@omerocak47104 жыл бұрын
search "control and user plane separation" on google. it has many benefits. efficiency, security, isolation, capacity, scaling, easy managing, maintenance, failure-handling, etc.
@NickolayKutovoy4 жыл бұрын
I will not be surprised that it wasn't easy to support websockets/two way communication in LAMP at that time and this was easiest/fastest solution
@while-loop3 жыл бұрын
Also likely to handle live websocket connections. You can only support 65k connections per server so scaling 80 full blown web apps just to handle dumb websocket connections may be overkill.
@nindinindi64052 жыл бұрын
Nice
@neuemage7 жыл бұрын
Discord is best team app
@fuhuoyeyou4 жыл бұрын
too honest.
@tenshi7angel5 жыл бұрын
Would prefer to use Discord, but beggars can't always be choosers. Oh well.
@lokthar63146 жыл бұрын
a PHP Monolith? Slack is a really great piece of Software but those design decisions though..
@8Trails505 жыл бұрын
Their team was experienced with PHP. Time to market is key. Everything else is overrated for a start up. Now they can do whatever they want since they are successful.
@tejaswis27552 ай бұрын
40 times a day of code push 😮
@Textras6 жыл бұрын
ahh GDRP
@emrahteamwork25832 жыл бұрын
GRPC or GDPR?
@James-mk8jp5 ай бұрын
Slack is slow as sh*t great job keith
@o1egm6 жыл бұрын
Very poor design...
@TremendousSax4 жыл бұрын
What's poor about it?
@yvrelna2 жыл бұрын
It's not a poor design. It's a design that allowed Slack to scale from a small start-up to one of the largest and best communication platforms. It's a very successful design. Good architecture and good design isn't one that contains all the hip buzzwords. Good designs are often very boring, and that's ok. That means an adult is in charge of the operations, not the hippies who sprinkled the latest immature fad and then leave the mess to someone else. The result is what matters, Slack is a very slick communication platform. Its architecture design may not contain sexy buzzwords, but it is what allows it to outshine all the other competitors who have buzzwords-driven design. That's not a "poor design".
@wonderstruck.3 ай бұрын
It’s a very real design. You wouldn’t pass a system design interview with this, but it is what you’ll likely find on Day 1 of your new job. It’s nice to know the design decisions of real systems and what could be done better.
@VahidOnTheMove Жыл бұрын
Poor presentation. He shows a slide and talks about something else.
@Dstonephoto3 жыл бұрын
Sweet lord, this is the most SV-esque mumble job ever.
@ronysaha39666 жыл бұрын
Flock is better
@jvm-tv3 жыл бұрын
It works for them and obviously a successful product but God! what a boring architecture! I wouldn't want to work there.
@phenomenal325 Жыл бұрын
Lol is slack still even a thing or in business? Pretty sure the markets owned by Microsoft teams now.
@SreeAn4 жыл бұрын
too boring, nothing much to learn for people preparing for system design interviews. I wasted 20 minutes, don't do that mistake.
@zbbentley4 жыл бұрын
...learning about the architecture of famous, successful companies making bags of money isn't applicable to system design interviews? Boring is *good*. I give system design interviews. I give massive points for boring, easy to operate, and easy to understand.
@igboman28603 жыл бұрын
@@zbbentley and cheap total cost of ownership. ie cheap to build and maintain
@adityashah1333 жыл бұрын
Who do we have here? Someone who's too smart for our entire era. The title clearly says how Slack works or at least worked at the time this video was made. Now, since you found this video boring, assuming after coming here yourself, I wouldn't ever want to hire you adding already to the fact that you watched this video for preparing for a job interview? For system design? The whole idea of system design is that it may be different for every product, and you need to build one depending on what resources you have, what your timeline is and most importantly, what you really know for sure, say the fundamentals. If there was a standard and a fixed path, I'm sure this video wouldn't even exist. You wasted 20 minutes, but to everyone a favor and don't take any interviews. You wouldn't want to waste their time too.
@vishanthbharadwaj3 жыл бұрын
Point is if u see this design u should have enuf knowledge to figure out the flaws and improve it on ur own
@foreverursabhi3 жыл бұрын
He didn't go in very deep, I'll give you that, but if you really found it boring, you'd not be trolling KZbin trying to win SD interviews. Let's chalk it up to the fact that you didn't hear some fancy words you might have expected, like Kafka, Cassandra, leaderless replication, and consistent hashing.