DevOps Training
  • DevOps
  • What is DevOps
    • What DevOps Look like
    • Why DevOps Needed
    • DevOps Automation Tools
    • DevOps Principles
  • cloud computing
    • How DevOps links with Cloud Computing
    • What is cloud computing?
      • Platform as a service (PaaS)
      • Infrastructure as a service (IaaS)
      • Software as a service (SaaS)
      • Function as a Service
      • SaaS, PaaS, IaaS
  • Version Control
    • Git as Version Control
      • Setting up Remote Repo
      • Git Hooks
      • github vs gitlab vs bitbucket
      • Quick Recap Git
  • DevOps #01 Continuous Integration
    • Continuous Integration & Continuous Delivery
      • Understanding CI Tools
      • Prerequisite
      • Continuous Integration
      • CI Tools
      • Travis-CI
        • Travis CI with S3
        • Static Site Build S3
        • Beanstalk with AWS CLI
          • Elastic Beanstalk with Travis CI
        • Travis using Code Deploy EC2
          • Github and Code Deploy
          • Travis CI with Code Deploy
      • Gitlab-CI
        • CI Setup for application
        • Gitlab Runners on EC2
        • CI Integration with AWS
          • Deploying App using Gitlab CI
          • Gitlab CI with AWS S3
          • Gitlab CI with ECS
          • CI Integration with EC2
            • Update and Clean Gitlab.yml
        • Install Gitlab on EC2
      • CI/CD using Jenkins CI
        • Jenkins Build on EC2
        • Jenkins Build EC2 Ubuntu
        • Jenkins CI/CD
          • Create a Build Item
          • Create a Build Pipleine
            • Pipeline Using Docker
            • Pipeline Examples
          • Jenkins CI with S3
            • Jenkins CI - S3
          • Jenkins CI with EC2
    • Jenkins CI Cluster Mode
    • AWS Code Pipeline CI/CD
      • AWS CI/CD Tools
        • AWS Code Build
        • AWS Code Deploy to Beanstalk
        • AWS Code Deploy to EC2
        • AWS Pipeline - Example CI/CD
  • Docker
    • Docker
      • Docker for Developers
        • Install and setup
        • Docker Commands
        • Docker Images Container
        • Docker Architecture
    • Docker Demos
      • Node JS Container
    • Docker-compose
      • Using Docker Compose
      • Docker Compose Demo
  • AWS Quick Refresh
    • AWS Quick Recap - Videos
    • AWS Quick Recap
  • AWS Architecture - Lab
    • Application Deployment - 01
    • Application Deployment - 02
    • Application 3 tier Architecture
  • Basic Networking
    • Computer Networking for Beginners
      • Basic of Networking
      • Networking Protocols
      • OSI Model
      • Network address and Host address
      • Subnetting Type
    • Network Architecture
    • Networking Layers OSI Model
    • Internet protocol
      • CIDR and subnetting
        • Examples
      • AWS VPC Subnets
  • VPC and Networking
    • AWS VPC
    • VPC Demo
      • Bastion Host | Jump Server
  • AWS Components
    • AWS Components In Depth
      • AWS Storage
        • AWS EBS
        • AWS Cloudfront
        • AWS S3
      • AWS Compute
        • ECS
        • AWS VPC
          • VPC Components
        • AWS EC2
        • AWS ELB
          • Application Load balancer
            • Example
        • AWS EC2 Auto Scaling
          • Demo
        • AWS Route 53
        • AWS Lambda Serverless
          • AWS Lambda Serverless Computing
  • Assignments
    • Assignment 01-Node JS app on EC2
    • Assignment 02-Node JS with Mysql
    • Assignment-03
  • Microservices
    • Microservices Architecture
      • Docker and Docker-Compose
      • Docker-Compose Example 01
      • Docker-Compose Example 02
      • Hand-on | Building Microservices
    • Architecture Components
  • AWS ECS
    • AWS ECS
      • Introduction of ECS
Powered by GitBook
On this page
  • What is Microservices Architecture?
  • Monolithic Architecture V/S Microservices Architecture:
  • Advantages of Microservices Architecture are as below,
  • Misconceptions on the matter:
  • Guidelines for Designing Microservices:

Was this helpful?

  1. Microservices

Microservices Architecture

PreviousAssignment-03NextDocker and Docker-Compose

Last updated 5 years ago

Was this helpful?

What is Microservices Architecture?

Microservices is an architectural style in which large complex application is composed of two or more smaller services.

Wikipedia explains as :

The philosophy of the microservices architecture essentially equals to the Unix philosophy of “Do one thing and do it well”. It is described as follows: — The services are small — fine-grained to perform a single function. — The organization culture should embrace automation of testing and deployment. This eases the burden on management and operations and allows for different development teams to work on independently deployable units of code. — The culture and design principles should embrace failure and faults, similar to anti-fragile systems. — Each service is elastic, resilient, composable, minimal, and complete.

Monolithic Architecture V/S Microservices Architecture:

Microservices infographic

Advantages of Microservices Architecture are as below,

  1. Microservices architecture gives developers the freedom to independently develop and deploy services. (No more Release Monday or Wednesday)

  2. The code is organized around business capabilities.

  3. Better fault isolation (No need to go through entire application logs to find fault cause)

  4. Easy integration and automatic deployment; using open-source continuous integration tools such as Jenkins and The microservice architecture enables continuous delivery. (DevOps)

  5. Easy to understand since they represent a small piece of functionality, and easy to modify for developers, thus they can help a new team member become productive quickly.

  6. Work very well with containers, such as Docker.

  7. Microservices simplify security monitoring because the various parts of an app are isolated. A security problem could happen in one section without affecting other areas of the project.

Successful Case Studies and Examples of Microservices Architecture Implementation — Netflix, eBay, Amazon, the UK Government Digital Service, Twitter, PayPal, The Guardian, and many other large-scale websites and applications have all evolved from monolithic to microservices architecture.

Misconceptions on the matter:

  1. Having web-services and rebranding them as microservices is not going to give you any benefits of Microservices Architecture(MSA).

  2. Micro’ is a bit of a misleading term: Most developers tend to think that they should try to make the service as small as possible. This is a misinterpretation.

Guidelines for Designing Microservices:

Four major Key Design Guidelines

  1. Loosely Coupled: Make sure the microservices design ensures the agile/independent development and deployment of the service.

  2. Small & Focus: Having a limited and focused business scope for a microservice helps us to meet the agility in the development and delivery of services.

  3. Language-Neutral: Programming language selection for microservice should be derived from the business requirement, not another way around.

  4. Bounded Context: During the designing phase of the microservices, we should find their boundaries and align them with business capabilities.