Hi, today the .NET Core 2.0 was released, so I am very happy to announce that Multi Service Bus Core is now ready for production. I developed it on macOS Sierra 10.12.6 and below you can find the tests results of this ready for IoT and Multi-Core coding library… I did not change anything in code from last post about Multi Service Bus Core, so you can download it from that post if you like. The only Continue ReadingMulti Service Bus Core Released
Yes, I know that it is impossible to predict lottery results. But if the results would be predictable? Of course I know they are not, but just hypothetically for a play with Perceptron Neural Network and prediction algorithms I want to show you that in 250 lines of code you are able to play with prediction thanks to Encog 3.3 library. I bought recently 2 Jeff Heaton’s books about neural network and C# and his library. That Continue ReadingPL Lotto Predictor in C# with Encog 3.3
Hi, today I would like to share with you idea of right parallel execution of actions/methods. Imagine at the beginning that you have queue of messages and even some number of threads that in parallel get messages from queue and then there are doing background work. Now if that messages executes actions on relational database you will quickly find out that some of your work is done right, but because of some reason you get timeouts or Continue ReadingParallelExecutorAspect in C#
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
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)
Hi, this is an implementation, with an output, and no comments. P ;).
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
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
try an output implementation no comments, enjoy, P ;).
Hi, today I would like to show you how trivial ETL in C# 4.0 can be. Many times we need transform model objects from one kind to another. I try to prepare for today easiest way to do that. I prepared small helper class with extensions for our objects with tree following methods: Serialize, Transform and Deserialize. You may be wonder how it works. Below I show you an example. Ok, and an output for this test Continue ReadingFluent Transform Extensions
Hi, today I would like to share with you another aspect for protection service method in multi-threading environment. I also try to examine how fast this solution is and how much of the CPU time it consumes. Todays implementation is extended for most popular usage and it is a method that return value and it is still protected. I will try to show you a test program that will be a kind of console application invoker. This Continue ReadingMultiThreadingProtectorAspect<T, TResult>
Hi, Have you ever wants to protect your method against many concurrent thread in multi-threading environment? Let’s say you have WCF service implementation and in that implementation best practice is create static class with static methods because of performance (static is about 40% faster than non-static). Oh right and let’s say that you need to access to for example file store in that file something or you have field that should be protect or you can simply Continue ReadingMultiThreadingProtectorAspect<T>