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 way do do async? it is by using data model and publisher consumer 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 aspects. First manages memory to help in a garbage collector work and second 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 now in elegant way. Do did so by changing a little bit a 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 2012 to implement 3 assemblies WebSocketsSandbox.Contracts with interfaces, WebSocketsSandbox.Server with service host site 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 can see results are similar than last entry except this time we are 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 are similar then last entry except this time we are using Parallel, I 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 are similar then last entry except this time we are using Tasks. Wishes 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 and replace only this method to the new one. I would like to 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 for this subject and this is one of my very good example. 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 and without async keyword? Answer is very simple. Everything you need is a Continue ReadingThe Powerful Async Pattern in .NET 1.1 without TPL and Async CTP1