API Gateways

What and Why of API Gateways in Microservices Basically, the API Gateway is a reverse proxy to microservices and acts as a single-entry point into the system. It is similar to a Facade pattern from object-oriented design and similar to the notion of an “Anti-Corruption Layer” in Domain Driven Design. It makes the processes of […]

Read More

Amazon SNS (Amazon Simple Notification Services)

Amazon SNS (Amazon Simple Notification Services) is a notification service used to send the notification to the subscribed endpoint or devices. It is provided as a part of Amazon Web Services. It provides a low-cost infrastructure for the mass delivery of messages, emails, notification, etc. Steps to implementing Amazon SNS  Create a topic – you […]

Read More

How to make highly performance oriented websites

Everyone normally approaches each performance oriented project by backend optimization, concentrating on compiler options, database indexes, memory management, etc. In reality, for most web pages, less than 15–25% of the end user response time is spent getting the HTML document from the web server to the browser. If you want to radically reduce the response […]

Read More

Reverse Linked List

Reverse a singly linked list. Example: Input: 1->2->3->4->5 Output: 5->4->3->2->1 Implementation: // C# program for reversing the linked list class ReverseLinkedlist { static void Main(string[] args) { LinkedList list = new LinkedList(); list.AddNode(new LinkedList.Node(80)); list.AddNode(new LinkedList.Node(50)); list.AddNode(new LinkedList.Node(40)); list.AddNode(new LinkedList.Node(20)); list.AddNode(new LinkedList.Node(100)); // List before reversal Console.WriteLine(“Given linked list:”); list.PrintList(); // Reverse the list list.ReverseList(); […]

Read More

Rotate Array

Given an array, rotate the array to the right by k steps, where k is non-negative. Example 1: Input: nums = [1,2,3,4,5,6,7], k = 3 Output: [5,6,7,1,2,3,4] Explanation: rotate 1 steps to the right: [7,1,2,3,4,5,6] rotate 2 steps to the right: [6,7,1,2,3,4,5] rotate 3 steps to the right: [5,6,7,1,2,3,4] Implementation: public static void Rotate(int[] nums, […]

Read More

Differences between Microservices and Monolithic Architecture

Microservices: Service Startup is fast. Microservices are loosely coupled architecture. Changes done in a single data model does not affect other Microservices. Microservices focuses on products, not projects. Monolithic Architecture: Service startup takes time. Monolithic architecture is mostly tightly coupled. Any changes in the data model affect the entire database. Monolithic put emphasize over the […]

Read More

ASP.NET Core Interview Questions and Answers

1.   What is the ASP.NET Core? ASP.NET Core is a new version of ASP.NET by Microsoft. It is a new open-source and cross-platform framework for building modern cloud based internet connected applications, such as web application, IoT application and mobile backends.  It is faster, configurable, modular, scalable and extensible. It is an open-source web framework […]

Read More

Longest Common Prefix

Write a program to find the longest common prefix string amongst an array of strings. If there is no common prefix, return an empty string ” “. Example 1: Input: [“geeksblood”, “geeks”, “geek”] Output: “geek” Example 2: Input: [“abc”,”xyz”,”pqr”] Output: “” Explanation: There is no common prefix among the input strings. Implementation: class Program { […]

Read More

Balanced Brackets

Given a string containing just the characters ‘(‘, ‘)’, ‘{‘, ‘}’, ‘[‘ and ‘]’, determine if the input string is valid. An input string is valid if: Open brackets must be closed by the same type of brackets. Open brackets must be closed in the correct order. Note that an empty string is also considered […]

Read More