Giter Club home page Giter Club logo

dynx's Introduction

dynx

Build Status

Coverage Status

Dynamic Docker friendly gateway

The purpose of the project is to provide a dynamically configurable gateway that is easilly deployable in a docker swarm enviroment.

Requirements:

  • Offer dynamic routing
  • configurable through an easy to use rest api
  • No down time to relad configuration
  • configuration should be shared by all the nodes but no context is shared between nodes (No node to node communication)
  • ...

Current solution:

The current solution use openresty (NGINX based scriptable gateway) with a redis as a Database. It's based on dns The NGINX have 2 servers configured:

  • server listening on 8888 is for configuration and is used to push an upstream to a redis List ( the key is the desired location/API)
  • server listening on 8666 have a wildcard location that will execute a lua (rewrite) script to find the upstream, based on the path and rewrite it to the configured upstream The current solution is based on https://github.com/tes/lua-resty-router

TODO

  • Update the README to add a demo and how to deploy
  • Add the ability to remove a location
  • Add the ability to configure multiple upstream for one location (load balancing)
  • Add a pipeling with tests (specially for LUA scripting)
  • Add the ability to delete all locations
  • Add unit test framework for the lua libraries
  • Write documentation with examples and use cases
  • Add swagger documentation for the API
  • Add an etcd backend support
  • Add regex support for upstream
  • ...

Join the team

Do you want to collaborate? Join the project at https://crowdforge.io/projects/261

dynx's People

Contributors

crowdforge-io avatar dhiaayachi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

crowdforge-io

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.