Devreal

Scale By The Bay 2019: Jason Swartz Interview

Scale By The Bay 2019: Jason Swartz Interview

Recording: Scale By The Bay 2019: Jason Swartz Interview

[Music] they call me the captain but my name is Jason Schwartz and I'm the edge engineering manager at twitch oh I organized the first few Scala by the bay conferences with Alexi we had previously worked on the first Silicon Valley Scala symposium back in 25th 2014 he did the organizing I helped out there but we Co organized the first few Scala by the bay we had a great one at Fort Mason with food trucks and everything and then the following year I think 2016 in Oakland at the Kaiser Center so it's great to be back here this is a beautiful venue for for scale by the bay and I always have a good time it's great it's so great to always meet new people and see old friends it's always a very friendly outgoing group at this conference most important part was I repeated several times best way to do high-performance server server lists functions with Scala is use vanilla Scala and then compile it to native Linux executables with Gras VM and then run that on AWS lambda and if you do that if you actually run your Scala code in as a Linux executable cross compile to Linux with Gras VM it runs really fast and there's almost no cold boot times you there cold boot times go down to maybe 200 milliseconds regular execution time maybe 50 milliseconds it is really fast and there's no lag at all and it's just a perfect way to run these I manage and lead the edge team which handles the core API traffic coming into twitch we have millions of concurrent users watching streams and participating and chatting and being part of these wonderfully immersive multi-user experiences and we have searches we have we have new things happening we might have fortnight events you might have League of Legends games there's a lot of wonderful eSports entertainment eSports and entertainment and events that happen where we'll get searches of traffic and we have to make sure to support that we might go to half a million to several million requests per second coming into our edge services to provide a wonderful dynamic user experience for users and we want to make sure no one's left behind we wanna make sure creators can use all the creator tools they need to properly broadcast and push video up and communicate collaborate with people we want to make sure the twitch extensions run on the stream and are fully interactive we want to make sure everyone can join the channel join the chat contribute bits emotes be a subscribe be immersive part of this and we want to make sure the scales for everyone even when there's really high traffic events that happen so we do a lot of work to make sure that we scale and our edge services can talk to the hundreds of downstream services that make up the twitch user experience at the company yeah I was looking forward to the zio talk and the the way that this is an improvement on futures I still use Scala futures it's really one of the only concurrent means I know of I think it works I think the monadic future works really well but learning about fibers and the fact that there is a more performant and interruptive way to do concurrency actually sounds in some ways a little bit similar to using go routines and go channels which I really like in the go language I want to learn more about zio and fiber-based concurrent programming after that looking forward to growing the team and hoping to find people at the conference who be interested in working at twitch otherwise we're looking to create more of a dynamic user experience and make sure that we can continue to scale and meet a lot of the challenges of scaling up to have millions and millions of people participating in the same event on the Internet [Music] the special speaker washroom what didn't have quite all the amenities I really like I am kind of a Vitalis no no I don't like not about that it's about the people I love coming here and meeting people and it's great uh I'm not sure what to change I love the venue it's really fun to be here the talks are great and it's so much fun to meet new people and make new friends it's a that's the most enjoyable part of the conference for me [Music]