How Slack Works

  Переглядів 150,090

InfoQ

InfoQ

День тому

Want to attend #Qcon or #DevSummit for free? Here's your chance!
Write an article for #InfoQ and you could win a ticket! Show off your expertise and contribute to the tech community.
Join the contest now: www.infoq.com/articles/infoq-...
💪 Knowledge is power!
#ArticleContest #TechArticles #WinATicket
--------------------------------------------------------------------------------------------------------------------------------------
Download the slides & audio at InfoQ: bit.ly/2z2fA57
Keith Adams takes a tour of Slack's infrastructure, from native and web clients, through the edge, into the Slack datacenter, and around the various services that provide real-time messaging, search, voice calls, and custom emoji.
This presentation was recorded at QCon San Francisco 2016.

КОМЕНТАРІ: 48
@cerberuspandora
@cerberuspandora 5 років тому
I love how honest this guy is
@ridhwaans
@ridhwaans 3 роки тому
which part
@tommyls4357
@tommyls4357 2 роки тому
I love how articulate he is. He comes across as a smart guy. I'd like to work with him.
@zss123456789
@zss123456789 4 роки тому
*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
@pathoslp
@pathoslp 3 роки тому
🐐
@BillaCode
@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_nk
@sanjay_nk 3 роки тому
Handling great scale with simplicity in design. Excellent !!
@Super21Nash
@Super21Nash 3 роки тому
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.
@nitrovent
@nitrovent 2 роки тому
I feel with you. We have a large SharePoint Farm solution that is ~10 years old we work on
@augusto3113
@augusto3113 5 років тому
I just wish the "Microsoft Teams" would watch this and learn to not suck
@arunsatyarth9097
@arunsatyarth9097 3 роки тому
There is nothing great about this design btw.
@lattelover7186
@lattelover7186 3 роки тому
@@arunsatyarth9097 No need a fancy architecture if the classic one get the job done and still easier to maintain.
@arunsatyarth9097
@arunsatyarth9097 3 роки тому
@@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.
@YourAliasIsNotAvailable
@YourAliasIsNotAvailable 2 роки тому
@@lattelover7186 "easier to maintain" on a 1M loc monolith php app... Do you even code?
@shimaozheng9968
@shimaozheng9968 2 роки тому
@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?
@giladdrori8677
@giladdrori8677 2 роки тому
Maybe due to the thundering hoard effect.
@nindinindi6405
@nindinindi6405 Рік тому
Nice
@simonc997
@simonc997 3 роки тому
At 18:00, can someone help me understand what he means by the left and right heads, writing left and writing right?
@karana2260
@karana2260 3 роки тому
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.
@zacklight
@zacklight Рік тому
​ @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...
@pengdu7751
@pengdu7751 4 роки тому
this may be a dumb question but why is there a message server in the first place? why a separate service?
@omerocak4710
@omerocak4710 3 роки тому
search "control and user plane separation" on google. it has many benefits. efficiency, security, isolation, capacity, scaling, easy managing, maintenance, failure-handling, etc.
@NickolayKutovoy
@NickolayKutovoy 3 роки тому
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-loop
@while-loop 3 роки тому
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.
@fuhuoyeyou
@fuhuoyeyou 3 роки тому
too honest.
@neuemage
@neuemage 6 років тому
Discord is best team app
@tenshi7angel
@tenshi7angel 5 років тому
Would prefer to use Discord, but beggars can't always be choosers. Oh well.
@lokthar6314
@lokthar6314 5 років тому
a PHP Monolith? Slack is a really great piece of Software but those design decisions though..
@8Trails50
@8Trails50 4 роки тому
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.
@Textras
@Textras 5 років тому
ahh GDRP
@emrahteamwork2583
@emrahteamwork2583 2 роки тому
GRPC or GDPR?
@davidstoneofficial
@davidstoneofficial 2 роки тому
Sweet lord, this is the most SV-esque mumble job ever.
@vahidsanei
@vahidsanei Рік тому
Poor presentation. He shows a slide and talks about something else.
@ronysaha3966
@ronysaha3966 6 років тому
Flock is better
@o1egm
@o1egm 5 років тому
Very poor design...
@TremendousSax
@TremendousSax 4 роки тому
What's poor about it?
@yvrelna
@yvrelna Рік тому
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".
@jvm-tv
@jvm-tv 3 роки тому
It works for them and obviously a successful product but God! what a boring architecture! I wouldn't want to work there.
@phenomenal325
@phenomenal325 8 місяців тому
Lol is slack still even a thing or in business? Pretty sure the markets owned by Microsoft teams now.
@SreekarAnugu
@SreekarAnugu 3 роки тому
too boring, nothing much to learn for people preparing for system design interviews. I wasted 20 minutes, don't do that mistake.
@zbbentley
@zbbentley 3 роки тому
...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.
@igboman2860
@igboman2860 3 роки тому
@@zbbentley and cheap total cost of ownership. ie cheap to build and maintain
@adityashah133
@adityashah133 3 роки тому
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.
@vishanthbharadwaj
@vishanthbharadwaj 2 роки тому
Point is if u see this design u should have enuf knowledge to figure out the flaws and improve it on ur own
@foreverursabhi
@foreverursabhi 2 роки тому
He didn't go in very deep, I'll give you that, but if you really found it boring, you'd not be trolling UKposts 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.
@nichtverstehen2045
@nichtverstehen2045 Рік тому
i stopped watching at php crap
Scaling Slack - The Good, the Unexpected, and the Road Ahead
37:54
Design Microservice Architectures the Right Way
48:30
InfoQ
Переглядів 703 тис.
Арсенал VS Челсі - Огляд матчу
07:44
Setanta Sports Premier League
Переглядів 283 тис.
Секретная разработка КГБ! Волга «Догонялка» на V8…
1:07:10
Мастерская Синдиката
Переглядів 2,3 млн
BRAWLER MUTATIONS WILL BREAK THE GAME! - Brawl Talk
09:34
Brawl Stars
Переглядів 24 млн
The Evolution of Reddit.com's Architecture
33:11
InfoQ
Переглядів 88 тис.
How Discord Stores TRILLIONS of Messages
13:06
Coding with Lewis
Переглядів 650 тис.
Under the hood of Slack’s real-time messaging at scale
9:46
Software Developer Diaries
Переглядів 1,1 тис.
Real-Time Delivery Architecture at Twitter
43:34
Parleys
Переглядів 56 тис.
Architecting a Modern Financial Institution
49:46
InfoQ
Переглядів 75 тис.
Scaling Instagram Infrastructure
51:12
InfoQ
Переглядів 274 тис.
How Netflix Really Uses Java
50:31
InfoQ
Переглядів 6 тис.
Facebook and memcached - Tech Talk
27:56
Meta Developers
Переглядів 229 тис.
Распаковка айфона в воде😱 #shorts
0:25
НЭКС
Переглядів 529 тис.
Infrared Soldering Iron from Cigarette Lighter
0:58
ALABAYCHIC
Переглядів 1,5 млн
Changing Replace And Edit Backgrounds New Tech || Photo Eedit NEW3X
0:50
Распаковка айфона под водой!💦(🎥: @saken_kagarov on IG)
0:20
Взрывная История
Переглядів 9 млн
iPhone - телефон для нищебродов?!
0:53
ÉЖИ АКСЁНОВ
Переглядів 3,3 млн