Batch Processing Aspect in Java

你好, today I made port of my Batch Processing Aspect in Java. It is quite a bit different aspect than I made previously in C#. In C#, I made something fully asynchronous, and in Java, I made an aspect that syncs invocations from many threads. I have in my mind uses of this aspect in web applications or web API or web service implementation with a static controller field, 例如, named 繼續閱讀Batch Processing Aspect in Java

Batch Processing Aspect in C#

你好, today I want to share with you idea of batch processing aspect. It solves an issue with calling T-SQL Server procedures 1-by-1 requests, 例如, for inserts calls. And instead of calling 1-by-1, I prepared aspects that you call 1-by-1, but it does it in batches, 例如, up to 100-by-100, like in my test example. Below you can find a code that includes aspects and a simple test. The most 繼續閱讀Batch Processing Aspect in C#

ParallelExecutorAspect in C#

你好, today I would like to share with you idea of right parallel execution of actions/methods. Imagine at the beginning that you have a queue of messages and even some threads that, in parallel, get messages from the queue and then do background work. If that message executes actions on the relational database, you will quickly find that some of your work is done right. Still, you get timeouts, deadlocks, or any 繼續閱讀ParallelExecutorAspect in C#

Coder Legacy

In-Proc Agents CommunicationsHello, this is my first article on Aspect Coder Network and I decide to start with some very modern subject of software architecture I am working on by a very long time before on implementation on this idea on .NET/C# technology stack. It takes me about four years to find the best practices in this subject. Which is modeling inter-process communications as a key of aspects designing for modeling multi-agent 繼續閱讀Coder Legacy

WaiterAspect And PublishersConsumerAspect<T>

你好, today I am happy to show you a WaiterAspect that has 5 us frequency and PublishersConsumerAspect<T> pattern implementation that has 5 us frequency too. So there are great. Also I want to share with you information that both today presented aspects are created in pure .NET Framework 2.0 and C# 2.0. So it is very easy to use them both in any legacy solution for example for having low latency waiting 繼續閱讀WaiterAspect And PublishersConsumerAspect<T>

ProcessesManagerAspect

嘿, below solution is useful when you create a process and you need to be sure that all your  started process by your application will be killed when application end. So I have two examples. First is a console application usage example. Second is a WinForms application usage example. And below you can see 85 lines of the ProcesseesManagerAspect implementation. 磷 ;).

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 high-speed 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 garbage collector 繼續閱讀Performance Manager Aspects (New)

ThreadPoolAbstractionAspect<T>

你好, this is an implementation, with an output, and no comments. 磷 ;).

The Cryptography PostSharp Aspects

Today I would like to write some aspects for security and encryption of sensitive data in our application. Because I am a huge fan of the PostSharp Framework, I will try to prepare two aspects. That will be EncryptData and DecryptData aspects. 也, I need to be sure that my aspects work very fast. So I will try to measure working aspects with the ANTS Performance Profiler 6 that I have. 所以 繼續閱讀The Cryptography PostSharp Aspects

UDP Communication Aspect

你好, Today I would like to show you UDP Communication Aspect. You can consider the test that is shown below. My last blog entry about communication via UDP over the IP network is the performance measurement. And that is very simple Console Application. Ok so, I will show you what is about the worst thing I show you last time. Do you remember that I changed my solutions a bit to something 繼續閱讀UDP Communication Aspect

Base of The PostSharp UDP Communication Aspect

你好, Today I would like to show how Simple is communicate via network UDP. I sometimes saw how some developers try to prepare that kind of communication with more code in C# that can be very easy. I would like to only show you an example. And ask you, is it enough to communicate? Of course, it is a class that can be very easily used as the base of the PostSharp 繼續閱讀Base of The PostSharp UDP Communication Aspect