Skip to main content

Beginner's Guide to the Reactive Extensions

This page contains resources to help developers get up to speed with the Reactive Extensions. For additional resources see the Learning Resources  page.

Rx Workshop

The following is a series of workshop videos introducing you to the key concepts in Rx. Each video will showcase a concept and present you with a code challenge exercise at the end. The videos, when viewed sequentially, simulate a classroom learning experience.

Rx Wokshop - Introduction

  • What is Reactive Extensions?
  • What is reactive programming?
  • How is it used in the real world?
Validation

Rx Workshop - Event Processing

  • Learn how to use LINQ operators to filter, aggregate, and group data in observable sequences to produce desired results. 
    
Validation

Rx Workshop - Observables versus Events

  • Learn about the first-class representation of event streams using observable sequences in Rx, and how to use subjects to publish and subscribe to sources.
Validation

Rx workshop - Unified Programming Model

  • Learn how to wrap existing event sources, including tasks, asynchronous methods, .NET events, etc. in observable sequences.
    
Validation

Rx Workshop - Writing queries

  • Learn about the rich set of LINQ query operators available in Rx to query event streams.
Validation

Rx Workshop - Schedulers

  • Learn about the use of schedulers to parameterize concurrency in Rx and to test applications using virtual time.

Tutorials & Articles

Curing the asynchronous blues with the Reactive Extensions for .NET
This Hands-on Lab familiarizes the reader with the Reactive Extensions for .NET (Rx). By exploring the framework through a series of incremental samples, the reader gets a feel for Rx’s compositional power used to write asynchronous applications, based on the concept of observable collections.

Curing the asynchronous blues with the Reactive Extensions for JavaScript
This Hands-on Lab familiarizes the reader with the Reactive Extensions for JavaScript (RxJS). By exploring the framework through a series of incremental samples, the reader gets a feel for Rx’s compositional power used to write asynchronous web sites, based on the concept of observable collections.

Documentation Highlights

Reactive Extensions for .NET Overview for Windows Phone
Windows Phone 7 ships with a version of the Reactive Extensions baked into the ROM of the device. This article gives a quick introduction on the subject.

Design Guidelines
Various guidelines apply when writing custom Rx operators. This document explains the rules well-behaved operators should obey to and documents a lot of design philosophy aspects of Rx.

 

Samples & Downloads

101 Rx Samples
This wiki page contains a large number of examples of how to use the Rx operators to query observable sequences.

LINQ to WMI Events Provider
Using the IQbservable interface, developers can write a custom LINQ provider for push-based observable collections. This sample shows how to build a simple provider for querying WMI Events using WQL.


Microsoft is conducting an online survey to understand your opinion of the MSDN Web site. If you choose to participate, the online survey will be presented to you when you leave the MSDN Web site.

Would you like to participate?