Code Monkey home page Code Monkey logo

fxproxy's Introduction

About the task

fxporxy is designed to demonstrate sidecar pattern implementation. fxproxy is sidecar service which is responsible to govern incoming traffic to the downstream application services (REVERSE PROXY) based on allowed path list in configuration.

RUN

git clone [email protected]:sr-hosseyni/fxproxy.git
cd fxproxy
docker-compose up -d

http://localhost:8888/company
http://127.0.0.1:8000/health-check

TODO

  • General structure of project needs improvments!
  • Request handling duration (time takes to get response from downstream) and some other metrics.
  • Current fxproxy container has prepared for development env by hot-reload, For deployment we need to compile app and copy native binary inside a production docker image.
  • fxproxy should be able to be more configurable!
  • It must be able to handle http 2 in communication with other sidecar proxies, and even RPC
  • Needs more test!
  • Functionality for capability to connect to service discovery.
  • Handling outgoing traffic from the backend micro-service to other services (DIRECT PROXY)
  • Using logrus for structured logging
  • Using viper for configuration management
  • Using cobra for extending CLI functions
  • A sidecar can be under very heavy traffic and easily can turn into single point of failure. to avoid it and have better resilience we can use in memory caching mechanism, utilize goroutine to process path in concurrent way rather than loop. Also having benchmark test which is part of Go testing
  • Makefile to handle test, build, deploy commands could help streamlining the development/deployment process
  • Docker file could be more optimized by using multi-stage building approach

fxproxy's People

Contributors

sr13hosseini avatar

Watchers

James Cloos avatar Rassoul Hosseini 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.