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 like inheritance. We need to define our data structure once and then we need to use auto generated code which will be used for read and write data to different sources. Protobuf is available in all programming languages like Go, python, C#, Java etc.
Read MoreDOCKER – A DIFFERENT SPECIES OF VIRTUALIZATION
In early days, we used to have virtual machines (VMs). This virtual machine help us in managing different operating system in the same hardware. It means On same hardware, we can have Windows server and Linux server and so on. We also need to have hyper-v to run this VMs.
Read MoreJWT 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 successfully, then we allow that user to use resources of a system. But what about subsequent requests? If user has been already identified then s/he does not need to provide credentials each time. Once authenticated, for particular period s/he can use system’s resources. In traditional approach, we used to save Username in Session. This session period is configurable it means session is valid for 15 minutes or 20 minutes. This session is stored in server’s memory. After expiry of session, user needs to login again.
Read MoreC# code optimization
1. Use of StringBuilder
Many times, we needed to modify string. Like we needed to append some text to a string.
E.g. string s = “First”; /*Here, New string will be created in memory and address of the memory location will be assigned to variable s.*/
Read MoreUpload files in Azure blob storage using ASP.Net core Web API
Azure blob storage service allows user to create / update / upload unstructured data in Azure. Later, user can access / download this data from anywhere in the world. This data can be Audio, Video, Image, Text or Log file. We can also use these service for streaming video or audio files. Users are directly allow to create / upload blob from Azure portal or developer can also create / upload blob via code. We can access these blobs via HTTP / HTTPS service also.
Read More