Giter Site home page Giter Site logo

http-routing-mesh's Introduction

HTTP Routing Mesh

A simple HTTP Router and proxy based on Erlang.

Dependencies

  • = Erlang R15B03

  • = Cowboy 0.8.5

  • Redis

Run it Locally

Change /etc/hosts

Put line above on /etc/hosts

127.0.0.1 www.myhost.com

Populate Redis

Here i populate www.myhost.com with 02 backend servers

  $ redis-cli RPUSH http:www.myhost.com 127.0.0.1:4567

  $ redis-cli RPUSH http:www.myhost.com 127.0.0.1:4568

Run Sinatra test

$ ./ruby app_test.rb -p 4567
$ ./ruby app_test.rb -p 4568 

Compile and Start Router

  $ make

It's ready.

By Default the router starts on port 8080, if you want change the number of socket acceptors and port listening, open .app.src file and change values there.

To access the Sinatra application test try :

http://www.myhost.com:8080

TODO

Everything.

http-routing-mesh's People

Contributors

tonyfabeen avatar

Stargazers

Leonardo Rossi avatar Uros Gruber avatar Rodrigo Navarro avatar  avatar David.Gao avatar Howard Mei avatar omusico avatar Charles HooperLee avatar Gus Becciu avatar Roger Leite avatar Heinz N. Gies avatar Everton Ribeiro avatar

Watchers

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