Code Monkey home page Code Monkey logo

infraestructure_integration's Introduction

Infrastructure Integration

Resume

The aims of this repository is used the stack with python (FastApi) , PostgresSql and nginx as load balancer and server reverse proxy.

Concept API

The API have the capability to manage the Hero, an Hero has the follow parameters

  • id
  • name
  • secret_name
  • age

The Api has 3 endpoints

  1. / => health check
  2. POST /heroes/ => create a new hero
  3. GET /heroes/ => get the heroes

Concept Infrastructure

The project has an integration with docker compose, see more in the docker-compose.yml file.

  1. Postgres SQL, image.
  2. ms_hero_1, api image.
  3. ms_hero_2, api image.
  4. server_reverse_proxys, nginx image, the nginx conf file is at the follow path reverse_proxy/nginx.conf.

The load balancer is configured to send a request to each ms_hero follow least connection.

Start up

This repository used docker as container manager

    docker-compose build
    docker-compose up -d

or if you want to use a simplified command line

    docker-compose up -d --build

Stack

  1. FastApi as Rest API framework.
  2. Docker as container manager.
  3. PostgresSql as DataBase.
  4. Nginx as load balancer and reverse proxy.

Reference

[1] Simic, S. (2023) How to install Docker on ubuntu 20.04 and 22.04, phoenixNAP. Available at: https://phoenixnap.com/kb/install-docker-on-ubuntu-20-04 (Accessed: 21 September 2023).

[2] Maintainers, D. (2023) Install the compose plugin, Docker Documentation. Available at: https://docs.docker.com/compose/install/linux/ (Accessed: 21 September 2023).

[3] taoyuan. (n.d.). Generation of a self signed certificate. Gist. https://gist.github.com/taoyuan/39d9bc24bafc8cc45663683eae36eb1a

[4] Ramírez, S. FastAPI [Computer software]. https://github.com/tiangolo/fastapi

infraestructure_integration's People

Contributors

danielsarmiento04 avatar

Watchers

 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.