Giter Club home page Giter Club logo

aws-gems's Introduction

aws-gems

This repository will be used for quick solutions of common problems faced in AWS world.

Micro-services based architecture - Multiple Services and service discovery

This is a common pattern where a thin client UI calls REST web services over HTTP/HTTPs. Services can call each other as well. There multiple way to architect this however the most common is to create self-contained web services where each is highly available or even better load balanced. A service discovery component is created to enable services to call each other. An API gateway can also be added to the mix.
I am showing an example architecture using application load balancer and path based routing. Refer to the diagram below.

alt text

CloudFormation Template Vs Elastic Bean Stalk

EBS is a convenient way to create a web application using a click through console however it does not work for this architecture. The architecture needs multiple web applications deployed on different EC2s and an ALB fronting them. Each application deployed on EC2 will be part of a target group. ALB will route the request to right target group based on the URL path. This will be governed by ALB listener rules. The approach needs two set of application codes to be deployed. EBS approach does not support this. EBS allows one set of application deployable to be uploaded, hence EBS approach can not be used to achieve this architecture.

CloudFormation Template


In this approach an Application Load balancer is created with default listener and target group. Then each web service is created as highly available and fault tolerant. Autoscaling group and launch configuration ensures high availability and fault tolerance. The services registers itself to a target group. For this target group a listener rule is added to the listener of the application load balancer.
It is easier to do this in a single template , however that would become unmanageable and service deployment would be tightly coupled with that of application load balancer. A better approach would be to decouple the deployment of ALB from deployment of web services. Refer the link below for more details on this approach-

aws-gems's People

Contributors

akshayar avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.