DevOps session 13: Automate git SETUP using bash scripting.

Image
  Bash scripting: A Bash Shell Script is a plain text file containing a set of various commands that we usually type in the command line. It is used to automate repetitive tasks on Linux filesystem. It might include a set of commands, or a single command. For example ,to install GIT we need to update the packages, then install git and check if installation is done using Linux commands. We can write all the command in a .sh file and we can execute the file to do all the steps mentioned above. Lets start with example from hello-world. 1.Open terminal and check the root of the bash using below command. CMD: which bash you can see path like  /usr/bin/bash or /bin/bash . 2.Create a hello-world.sh file and paste the below lines. CMD: nano hello-world.sh You can see editor ,add below lines #!/bin/bash # declare MSG variable MSG="Hello World" # print variable on a screen echo $MSG To save the file use CTRL+X, then CTRL+Y and press ENTER 3. To execute the file we need to ad...

DevOps session 2: N Tier(Multi-Tier) Architecture

 In N-tier, “N” refers to a number of tiers or layers are being used like – 2-tier, 3-tier or 4-tier, etc. It is also called “Multi-Tier Architecture”.

The most common form of n-tier is the 3-tier Application, and it is classified into three categories.

  • User interface programming in the user’s computer
  • Business logic in a more centralized computer, and
  • Required data in a computer that manages a database.
 
It is suitable to support enterprise level client-server applications by providing solutions to scalability, security, fault tolerance, reusability, and maintainability. It helps developers to create flexible and reusable applications.

N-Tier Architecture

A diagrammatic representation of an n-tier system depicts here – presentation, application, and database layers.




The presentation tier.  The presentation tier is the user interface.  This is what the software user sees and interacts with.  This is where they enter the needed information.  This tier also acts as a go-between for the data tier and the user, passing on the user’s different actions to the logic tier.

eg: UI we experience on web applications.(Login page, sign up pages)

The application logic tier.  The application logic tier is where all the “thinking” happens, and it knows what is allowed by your application and what is possible, and it makes other decisions.  This logic tier is also the one that writes and reads data into the data tier.

eg: Logic created behind the UI to perform certain functionality like login ,search, sort etc.

The data tier. The data tier is where all the data used in your application are stored.  You can securely store data on this tier, do transaction, and even search through volumes and volumes of data in a matter of seconds.

eg: When we register for a website. Data like username, password etc will be stored in Databases.

Advantages of N-Tier Architecture:

There are several benefits to using n-tier architecture for your software.  These are scalability, ease of management, flexibility, and security.

  • Secure: You can secure each of the three tiers separately using different methods.
  • Easy to manage: You can manage each tier separately, adding or modifying each tier without affecting the other tiers.
  • Scalable: If you need to add more resources, you can do it per tier, without affecting the other tiers.
  • Flexible: Apart from isolated scalability, you can also expand each tier in any manner that your requirements dictate.




Comments

Popular posts from this blog

DevOps session 10: Git basic commands for daily use

DevOps session 7: Source Code Management/ Version control systems (GIT) || Setup Git on ubuntu

DevOps session 11: Git branching & best practices