TPL Dataflow Starvation

Saturday, April 19, 2014

TPL Dataflow Starvation UPDATE: The bug had fixed on version 4.5.24 (after more than a year since I report it) and now it is finally safe to use the fallback scenario . this post is dealing with TPL Dataflow issue that may cause starvation.the TPL Dataflow team aware of it, so we can expect it to be fix in the near future.until then, you should be aware of it in order to avoid potential starvation of some of your Dataflow Blocks. so when does it happens? the starvation will happens when you have 2 blocks which is linked...

Code Paste

Monday, March 31, 2014

Code Paste during the years I maintains code snippets as notes for myself.recently goes over it and thought it might be useful to some of you, so I decided to publish it on my blog. you can see my code snippet at http://codepaste.net/searchall you have to do is to fill the "By" filed with my name and click search. enjoy it
no comments

Observable.FromAsync is it the right choice?

Saturday, March 22, 2014

Observable.FromAsync is it the right choice? one of the most common RX's practice is to use Observable.FromAsync for executing asynchronous IO operations. typical code may look like: Code Snippet var webClient = new WebClient(); IObservable<string> uris = ...; var dataStream = from uri in uris                     from data in Observable.FromAsync(                         () => webClient.DownloadDataTaskAsync(uri))                     select data; behind the scenes RX set a Task continuation (ContinueWith) and propagate the result through AsyncSubject, actually it is a bit complex and messy implementation combination with TPL Dataflow (.NET 4.5) may offer better solution to asynchronous...

Code Samples for my SDP Sessions

Monday, December 23, 2013

Code Samples for my SDP Sessions the SDP conference was ended last week. with a few days delay the code sample for my sessions is now available. all the code for both days (TPL and Async Programming and Advanced Parallel Composition) available in here.   Enjoy :-)
no comments

Code Samples for my SDP Sessions

Code Samples for my SDP Sessions the SDP conference was ended last week. with a few days delay the code sample for my sessions is now available. all the code for both days (TPL and Async Programming and Advanced Parallel Composition) available in here.   Enjoy :-)
no comments

The 3rd day of the SDP

Wednesday, May 8, 2013

The 3rd day of the SDP was over and I want to thanks all the attendants. my yesterday session was about C# 5 async and await. today I will have a full day tutorial on Rx and TPL Dataflow. you can download the demo code and also the presentation for second and third days from here (the link is also having the demo code for today's sessions). anyway, I also want to recommend 2of yesterday session. if you were attend at the conference you should have an access to...

Tpl Dataflow walkthrough – Part 5

Saturday, January 28, 2012

Tpl Dataflow walkthrough - Part 5 this post is a complete walkthrough of a web crawler sample that was build purely by using Tpl Dataflow. it was built on .NET 4.5 / C# 5 (on a virtual machine using VS 11). I will analyze each part of this sample, both by discussing the Dataflow blocks and the patterns in used. the sample code is available in here (it is a VS 11 project). during the walkthrough you will see the following Tpl Dataflow blocks: TransformBlock ...

Tpl Dataflow (IDataflowBlock) – Part 5

Monday, December 19, 2011

Tpl Dataflow (IDataflowBlock ) - Part 5 the previous post discus the concept ITargetBlock and ISourceBlock, which is the TDF consumer/Producer contract. you can find all the post in this series under the TDF tag. this post focus on the IDataflowBlock contract which is the life-time management contract for all data-flow's blocks. the IDataflowBlock define single property and 2 methods: Code Snippet public interface IDataflowBlock {     Task Completion { get; }       void Complete();     void Fault(Exception exception); } ...