Introduction In this post, we will talk about Flyweight design pattern. We will see when one should use this design pattern and how we can implement it. In below example, we will use C# language to implement the example of it. Type: Structural design pattern Description: In early days of computing, memory was so much costly … Continue reading Flyweight design pattern
Category: C#
Redis example with Docker in C#
Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker. Lets install redis server in docker. Beauty of docker is that without installation of actual software, you can install it in docker and can access those application. Lets create a simple example and divide it in … Continue reading Redis example with Docker in C#
Grpc example in c#
Lets follow below steps to create simple Grpc service in C#. This service will have a simple method called "Reverse" which will take one string parameter and return reverse of that string. This example contains proto file also. I would recommend you to please go through this post if you don't know about protobuf. This … Continue reading Grpc example in c#
protobuf in C#
Protobuf is used to serialized data structure efficiently. It is faster, smaller & simpler than XML. Protobuf is useful in developing programs to communicate with each other over a wire and it is created by Google. It help us in creating micro services. Protobuf is not an object oriented language so it does not support feature … Continue reading protobuf in C#
JWT authentication
In web application, Security is essential. User wants to use resources of our system. For that, we need to authenticate user. Authentication means need to check whether user is eligible to use system or not. Generally, we do authentication via username (in form of unique user name or email id) and password. If user is authenticated … Continue reading JWT authentication