Webmachine dispatch.conf

Bryan Fink bryan at basho.com
Mon Oct 26 11:00:22 EDT 2009


On Mon, Oct 26, 2009 at 10:54 AM, flavio ishii <flavio.ishii at gmail.com> wrote:
> I ran the stickynotes demo successfully, and now as I'm creating my own app
> I'm trying to make sense of Webmachine's role in this example.
>
> I noticed that the file riak/demo/stickynotes/priv/dispatch.conf is not
> required, but the stickynotes blog post
> (http://blog.beerriot.com/2009/08/17/riak-demo-stickynotes/) also refers to
> setting up the "dispatch" correctly, could someone clarify this please?

Hi, Flavio.  The stickynotes app uses a dynamically-created dispatch
lists, instead of a static one.  You can see the code that constructs
the dispatch list in stickynotes_sup:init/1

http://bitbucket.org/justin/riak/src/tip/demo/stickynotes/src/stickynotes_sup.erl

-Bryan




More information about the riak-users mailing list