“ A Saga is a Long Lived Transaction that can be written as sequence of transactions that can be interleaved. All transactions in the sequence complete successfully or compensating transactions are ran to amend a partial execution. “ Coined By- Hector Garcia-Molina, Kenneth Salem Princeton University 1987 A saga is a collection of Sub … Continue reading NServiceBus Saga
Category: .NET
NServiceBus: Fundamentals
Event Driven Architecture : Send command and Publish events. Asynchronous messaging A mechanism for Loosely coupled integration of software components. Publisher/subscriber pattern. Advantage: Scalability, Reliability( Retry) Service Bus - For Service Endpoint communication. Allows services to communicate with each other, Have backend messaging implementation. Service Bus Should not have any business logic, service should be … Continue reading NServiceBus: Fundamentals
Singleton Vs Static in C#
Singleton is one the most common use design pattern, usually we use this when we have to deal with single instance creation like logger implementation. Static is keyword which ensure the special behavior in context of OOPS can have static method only. Both singleton and static allows a single instance to be created and easily … Continue reading Singleton Vs Static in C#
History and Evolution of C#
Currently available C# versions are from C#1.0 to C # 6.0. In this blog will illustrate the different C# versions and there highlighted features with one liner description. C# 1.0 (2002) Managed Code: Code written in those more than 20 high level languages that runs on .NET framework and compiled into IL code. Example of … Continue reading History and Evolution of C#
Garbage Collection in .NET
Fundamentals of Garbage Collector " In CLR- GC work as an automatic memory Manager". GC Do: Allocate object on the managed heap efficiently. Reclaim object that no longer being used and keep memory available for future allocations. Provide memory safety i.e. an object cannot use the content of another object. Fundamentals of Memory: Each process has … Continue reading Garbage Collection in .NET
Fundamentals of Code coverage.
Code coverage: verification metric(formula) of determining how many line of code in a given binary(DLL) are measured when run test cases against it. Can figure out how many how much code has been tested for the specified test method. Can judge how well the code/function is tested. Do not tell how well code is written. … Continue reading Fundamentals of Code coverage.
Introduction to ASP.NET 5, MVC 6
ASP.NET 5 Open source web framework. Can develop and run on windows, Linux and the Mac.It includes the MVC6 framework. Which now combines the features of MVC and Web API into a single web programming framework.Build on .NET Core runtime, but it can also be run on the full .NET Framework for maximum compatibility.Key Features : Leaner, modular … Continue reading Introduction to ASP.NET 5, MVC 6
ASP.NET- Global.asax
# Global .asax is optional ASP.NET application level file handles the event raised by ASP.NET or by httpHandlers. Have one with one application at root directory. # At runtime it get parsed and compiled into .net framework class derived from HttpApplication. # On publishing the web project compiled assembly App_global.asax.dll could be found in bin … Continue reading ASP.NET- Global.asax
History of .NET Framework
Intended to give the introduction about the .NET framework. .NET framework is a technology which helps to build and run the applications and web services. It includes a large library of classes and functions to provide a consistent environment for OOP code developement and execution i.e. with language interoperable..Net framework is evolving very fast adding new … Continue reading History of .NET Framework
ASP.NET MVC Advantages & Disadvantages
MVC(Model-View-Controller) was released as part of visual studio 2010 and .NET 4.0. Advantages: # Build upon a proven mvc design pattern. # On comparing to ASP.NET where we have viewstate to store all the data rendered and final html get too large cause load time delay. There is no viewstate concept in mvc. # Client … Continue reading ASP.NET MVC Advantages & Disadvantages