Posts

GOLANG

Image
  The Golang programming language was built to fill in the gaps of C++ and Java that Google came across while working with its servers and distributed systems. Top reasons you should learn Go Lang programming Go Programming Language has First-class functions Go language has a Built-in garbage collection Golang has Simple scoping rules Go Programming Language has Focused vocabulary Go has goroutines It handles errors and bugs at the compile time which makes developers so comfortable using this language. It is compiled and statically typed programming language developed by Google. Statically typed means variable types are checked before by the compiler so type errors are picked up earlier. It's also strongly typed language which means variable type cannot be changed after it is declared. useful for  writing lightweight microservices . Pointers : It allows the programmers to directly interact with the memory allocation of different variables.  And with the use of pointers, prog

OSPF Using Dijkstra's Algorithm

Image
Open Shortest Path First (OSPF) It's a routing protocol used in routers to find the shortest path between routers. It's based on Dijkstra's Algorothm . OSPF supports variable length subnet masks ( VLSM ) and route summarization. It uses link state routing (LSR) . OSPF routers maintain a map of internetwork called Link State Database. Here each router maintains the information of all other domains, routers, subnets within the entire network and based on this information, they determine the shortest path using dijkstra's algo. The routers gets this information through LSA. LSA - Link State Advertisements . They contains information about routers.  An LSA is a router's way of communicating information in OSPF. There are different types of LSAs. We'll learn about them later in this blog Once this LSA have been flooded, OSPF stores information in Link State Database called LSDB . A large OSPF domain is broken into seperate areas to restrict the propagation of routes

ANSIBLE: Haproxy Configuration over AWS using Ansible

Image
  CONFIGURATION OF HAPROXY  USING ANSIBLE OVER AWS Lets configure Reverse Proxy that is  Haproxy  using ansible Playbook. Check this blog to know more about Haproxy :  ANSIBLE : Configuration of Haproxy As every server has a hard coded limit . At one point in time, only limited clients can connect to the web server. If more clients try to connect, the will get some error. That's why we are using  Load Balancer.  Here we want to achieve  high availability  and  extra security  for our web server using haproxy. But the problem is that, if we need to add more servers, we can add them by adding their IP in inventory file and run the playbook. But  how Load balancer will come to know that more servers have been added???? For this we will have to manually update the configuration file of Haproxy. And manually updating is not good as we are using ansible. So the solution is, we can use  JINJA  language to write code in configuration file. The best thing about this language is we can write

Student-data-input-WebApp

Image
Create a Web-Application that takes input from users through App and consolidates all the data in excel To create this UI, we can use : > Flask for framework > HTML > Python Steps to create this UI : Step 1 : Create a HTML Form Through this form, user can insert data. This is the code for html form: And our output would be like this :   Step 2 : Create Flask code  Step 4 : Create mymenu.html file Done!! Now we can use this form to store user data in excel sheet!! GitHub URL : https://github.com/ShubhashriSinha/Student-data-input-WebApp Hope you liked my blog :)

OpenShift

Image
 What is OpenShift? OpenShift is an   open source   hybrid cloud   application   Platform as a Service   (PaaS) developed by Red Hat . Red Hat also offers a version of OpenShift for   private clouds   called OpenShift Enterprise .  At its core, OpenShift is an open-source tool that leverages the Kubernetes platform to manage  Docker containers  for consistent: Workload management Self-monitoring Centralized policy provisioning     With  OpenShift, developers can deploy containerized applications in an Integrated Development Environment (IDE), while employing Kubernetes to manage them. OpenShift uses Red Hat Enterprise Linux  (RHEL) and its  SELinux  (Security-Enhanced Linux) subsystem as its foundation. OpenShift supports multiple languages for ease of development, including Java, PHP, Python, Ruby, Perl and Node.js. Advantages : OpenShift is available both as: A commercial product (OpenShift Container Platform) Public cloud (OpenShift Online and OpenShift Dedicated) The OpenShift C