Skip to content

An ApiGateway is a traffic management service that provides access between micro service layer and external clients.

License

Notifications You must be signed in to change notification settings

DanielSarmiento04/api_gateway

Repository files navigation

Api Gateway

Abstract

An ApiGateway is a traffic management service that provides access between micro service layer and external clients. This repository aims to provide an example of how to use Rust (with Actix and reqwst) as ApiGateway. The methodology used is consider and server proxy to load a security ssl configuration, after the load must go to the ApiGateway, depending of the prefix route /prefix may redirect to specific micro service. To simplify the deployment and development The system use docker and specialist docker compose to manage that.

Table of code

  1. Introduction
  2. Setup

Introduction

A simple schema that the project follow is the next.

Folder structure,

  • bun_cars (javascript/bun), cars api.
  • python_users (python/FastApi), users api.
  • rust_api_gateway (rust api gateway), rust api gateway
  • ngnx (server proxy), servers proxy server

SetUp

  1. The repository use a custom key with open ssl to create the certificates.
sudo openssl req -new -newkey rsa:2048 -nodes -keyout tudominio.key -out tudominio.csr

Each component can build using docker, each folder can build separately

As suggestion, create a network and run the docker container over this network

docker-compose up -d --remove-orphans

References

About

An ApiGateway is a traffic management service that provides access between micro service layer and external clients.

Topics

Resources

License

Stars

Watchers

Forks