Skip to content

madagra/python-api-gateway

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple API gateway using python-zeroconf

Sample implementation of an API gateway with automatic service discovery using the python-zeroconf library. Both gateway and services are executed in different Docker containers.

Usage

In order to execute this code you should have the Docker daemon running on your environment and also the docker-compose utility installed. For running the API gateway and two sample services just execute:

docker-compose up -d

Sample information on the automatically discovered services can be accessed at http://0.0.0.0:4999/services.

Purpose

This is only a sample implementation but it can be used as blueprint for much more complicated programs which use a microservice architecture. Beware that that the services must be developed in Python.

About

Simple API gateway for discovering dockerized Python services using zeroconf

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published