• Jafar Husain
  • Technical Lead Netflix
  • Twitter
Jafar Husain is a Technical Lead at Netflix, with over 16 years of experience in the industry. He's currently a member of the TC39, the Javascript standards body designing the next version of JS. He specializes in building web servers and clients using functional reactive programming, and was the first user of the Reactive Extensions Framework. He's also responsible for "Falkor", a RESTful data access framework that powers most Netflix clients. A highly-rated speaker, he has spoken about reactive programming at YOW!, QCon, CodeMesh, and given Channel 9 interviews on the subject. He has also authored interactive training software to help developers learn about functional reactive programming.

Session

  • Async JS at Netflix
  • Time: 4:00pm - 4:50pm | Room: Grand A

What does a mouse drag event have in common with an Array of numbers?

The answer to this question may surprise you: they are both collections. This key insight holds the key to dramatically simplifying asynchronous programming in Javascript. In this talk you will learn how you can use the familiar Javascript Array methods to create surprisingly expressive asynchronous programs. Using just a few functions, you will learn how to do the following:

  • Declaratively build complex events out of simple events (ex. drag n' drop)
  • Coordinate and sequence multiple Ajax requests
  • Reactively update UI's in response to data changes
  • Eliminate memory leaks caused by neglecting to unsubscribe from events
  • Gracefully propagate and handle asynchronous exceptions
  • In this talk we'll be exploring the Reactive Extensions (Rx) library (https://rx.codeplex.com/) which allows us to treat events as collections. You'll learn about how Netflix uses Rx on the client and the server, allowing us to build end-to-end reactive systems. We'll also contrast Rx with Promises, another popular approach to building asynchronous programs in Javascript.

Media

Video
Slides
Sponsors