Data Model Async

Hi, I saw million times solution with ThreadPool or sometimes event with new async keyword in C# 5.0. And so many times I want to tell people that their doing it in wrong way. about a half of year ago someone told me that I have tendency to keep too much only for me. I am trying to change this. So, what is best Continue ReadingData Model Async

Performance Manager Aspects (New)

Hi today I created powerful combination of performance aspects. First MemoryManagerAspect<T> and second ThreadsManagerAspect. Both of that ideas are for very fast services created on multicore systems. I will show you code that produce following output that can be a proof that it is possible to create very low latency and asynchronous code in C#. This code was produced by Idea of two performance Continue ReadingPerformance Manager Aspects (New)

ThreadPoolAbstractionAspect<T>

Hi, this is an implementation, with an output, and no comments. P ;).

WebSockets on Windows Server 2012 with WCF 4.5 after TuneUp

Hi, today I try to tune up my last example with very trivial way with buffer. Now my example is much faster. Buffer for sending data usual have array form. In my example I change “double value” into “params double[] values” parameter. With that modification older implementation can still works just fine, but when someone wants to use buffered array values it is possible Continue ReadingWebSockets on Windows Server 2012 with WCF 4.5 after TuneUp

WebSockets on Windows Server 2012 with WCF 4.5

Hi, today I was wandering about new features in .NET 4.5 and I try to examine in practice WebSockets feature. This feature is supported by Windows Server 2012 only. And I try to find an elegant example of running it. There was not any interesting and elegant solution on the Internet so I prepared my own for this blog entry. I used Visual Studio Continue ReadingWebSockets on Windows Server 2012 with WCF 4.5

The Powerful Async Pattern in .NET and C# 5.0 with Async CTP1

Hi, in my blog entry The Powerful Async Pattern in .NET 1.1 without TPL and Async CTP1 I wrote about async pattern in .NET 1.1. And today I would like to show pattern with Async CTP1 for .NET and C# 5.0. Example code is very similar except RunAsync method that I will show below. And below is an output with results. So, as you Continue ReadingThe Powerful Async Pattern in .NET and C# 5.0 with Async CTP1

The Powerful Async Pattern in .NET 4.0 with Parallel

Hi, in my blog entry The Powerful Async Pattern in .NET 1.1 without TPL and Async CTP1 I wrote about async pattern in .NET 1.1. And today I would like to show pattern with parallel for .NET 4.0. Example code is very similar except RunAsync method that I will show below. And below is an output with results. So, as you can see results Continue ReadingThe Powerful Async Pattern in .NET 4.0 with Parallel

The Powerful Async Pattern in .NET 4.0 with Tasks

Hi, in my blog entry The Powerful Async Pattern in .NET 1.1 without TPL and Async CTP1 I wrote about async pattern in .NET 1.1. And today I would like to show pattern with tasks for .NET 4.0. Example code is very similar except RunAsync method that I will show below. And below is an output with results. So, as you can see results Continue ReadingThe Powerful Async Pattern in .NET 4.0 with Tasks

The Powerful Async Pattern in .NET 2.0 with Threads

Hi, in my last blog entry The Powerful Async Pattern in .NET 1.1 without TPL and Async CTP1 I wrote about async pattern in .NET 1.1. And today I would like to show pattern with threads for .NET 2.0. Example code is very similar except RunAsync method that I will show below. If you would like to test it you need last entry code Continue ReadingThe Powerful Async Pattern in .NET 2.0 with Threads

The Powerful Async Pattern in .NET 1.1 without TPL and Async CTP1

Hi, today I would like to show you Async Pattern for .NET 1.1 and C#. I prepared training workshop on this subject and this is one of my very good examples. So, below I will show you an example test code of entire async versus sync performance measurement solution. You may wonder how that is possible in .NET 1.1 without the Task Parallel Library Continue ReadingThe Powerful Async Pattern in .NET 1.1 without TPL and Async CTP1