.NET framework in version 4.5 provides a cool improvement into Garbage Collector – server mode. This option allows GC to be more efficient on modern hardware. MSDN contains a great article about this feature, which I really recommend you to read. ASP.NET has Server mode turned on by default. Nothing stands on the way of enabling server mode on console app. You can do it with app.config and three lines in xml. My project Kronos is a distributed cache system, where GC will have a lot of work. How to en...
Strona głównaUżytkownik
kapral18 | użytkownik
Daj się poznać 2016 3145 dni, 10 godzin, 41 minut temu 142 źrodło rozwiń
Any Kronos client will be available to use three basic commandsInsertGetDelete In future I want to add few more, like Count and GetKeys. Each of requests to the server serialized to binary form is preceded by few bytes of meta-data, including RequestType. In code its represented as a Request class, which in addition to type has two generic methods. At the beginning they might look difficult, but they are quite simple. First of them is responsible for sending any request to the server via special connec...
Architektura 3152 dni, 12 godzin, 25 minut temu 43 źrodło rozwiń
Packing and publishing nuget from standard .NET project is very simple. Create or generate nuspec file and runnuget pack The appearance of the Core framework and project.json file caused the a little change. Due to historical reason, in .NET Core we have two command line interfaces with utilities for packages.DNU – DNX utility, used in project
Daj się poznać 2016 3161 dni, 12 godzin, 43 minuty temu 51 źrodło rozwiń
In the third post about XGain I would like to say something about the heart of server. TcpListener is a great class to build server. It has a normal and async methods, you can choose between Socket and TcpClient. Unfortunately writing this same logic for new project might be boring.
Architektura 3166 dni, 10 godzin, 57 minut temu 42 źrodło rozwiń
In this talk, I will present techniques for efficient incremental processing of complex analytical queries, ranging from classical SQL queries to linear algebra programs. Our system, called DBToaster, compiles declarative database queries into high-performance stream processing engines that keep query results (views) fresh at very high update rates. DBToaster uses a recursive query compilation algorithm that materializes a supporting set of higher-order delta views to achieve a substantially lower view m...
Sztuka programowania 3167 dni, 3 minuty temu 26 źrodło rozwiń
Network layer is really hard to test and debug. XGain works on the Socket class level and this class doesn’t have an interface. That means testing of any component references to this type is really hard, but everything is possible.
Daj się poznać 2016 3170 dni, 5 godzin, 3 minuty temu 44 źrodło rozwiń
.NET framework has a Socket class to deal with low-level networking. Standalone synchronous server based on Socket is not so difficult, here is an example:. Microsoft has provided two ways of creating high performance TCP/IP server. The most cool is SocketAsyncEventArgs with event-based system
Daj się poznać 2016 3174 dni, 2 godziny, 59 minut temu 97 źrodło rozwiń
New plugin for Visual Studio 2015 – Microsoft ASP.NET and Web Tools (download here) provides new templates for .NET Core – Console Application and Class Library. These templates are the base structure for all multi-platform projects in .NET. Let’s start with executable type – Console Application. By default this one contains three files – AssemblyInfo.cs, Program.cs and project.json. Program file provides an entry point for application – just like normal static Main method in .NET Framework. The last ...
Daj się poznać 2016 3179 dni, 23 godziny, 12 minut temu 119 źrodło rozwiń
Daj się poznać 2016 3182 dni, 4 godziny, 32 minuty temu 122 źrodło rozwiń