Will reactive extensions (Rx) replace the parallel task library?

After watching the Rx.NET samples , I enjoy how brilliant the concept and implementation of Reactive Extensions is. It seems that developers are offered a more convenient template to achieve the same multi-threaded parallel coding as the .NET 4.0 parallel task library.

Will Rx.NET replace TPL? Should he?

+7
parallel-processing system.reactive
source share
1 answer

In short, no.

The parallel task library (TPL) provides work distribution ( concurrency ), as well as parallel optimization of larger work ( parallelism ), while abstracting the actual mechanism of work distribution (threads).

C # adds the async to control language-level asynchronous . Rx is already updated to support this feature.

Rx provides a framework for composing and managing asynchronous data streams using standard operators. Although Rx uses a scheduler, this is just an abstraction. Actually, the recommended scheduler for parallelism is TaskScheduler , which uses TPL.

See also Jeffrey Van Gogh's answer to the exact opposite question on the Rx forums.

Also, this question may be helpful.

+15
source share

All Articles