Skip to content

andytill/udon

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

udon: a distributed static file web server

Udon is a static file web service, generally intended to be used at the edge of a network to serve static assets for websites like CSS files, javascript, images or other content which does not change frequently or is dynamically part of the web application state.

It's also built on top of riak_core and provides a simple application which is intended to introduce the kinds of programming that's required to implement a riak_core application including handoff logic between vnodes. I wrote this as a tool to teach for Erlang Factory SF 2015.

Slides and video

The slides can be found on SpeakerDeck.

The video for the talk is available on YouTube.

Building

Make sure you have Erlang 17+ installed and operational. You also will need a working C++ compiler and GNU make. Clone the repo.

$ cd udon 
$ make devrel

Building a cluster

$ cd dev
$ for d in *; do $d/bin/udon start; done
$ dev/dev2/bin/udon-admin cluster join udon1@127.0.0.1
$ dev/dev3/bin/udon-admin cluster join udon1@127.0.0.1
$ dev/dev4/bin/udon-admin cluster join udon1@127.0.0.1
$ dev/dev1/bin/udon-admin cluster plan
$ dev/dev1/bin/udon-admin cluster commit

Running

$ dev/dev1/bin/udon attach
udon1@127.0.0.1:1> udon:put("test", <<"foo">>).

About

A distributed replicated static file web server and riak_core example project.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Erlang 61.9%
  • Shell 34.2%
  • Makefile 3.9%