Skip to content

tonyfabeen/http-routing-mesh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Http Routing Mesh in Erlang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published