[erlang-questions] Cowboy, Mochiweb or Webmachine

André Graf andre@REDACTED
Wed Apr 11 17:05:58 CEST 2012


Hi Aleksandr

Webmachine is a REST-layer on top of the HTTP server mochiweb. So if
you don't need a full-blown REST stack you could also use stand-alone
mochiweb. Cowboy is a HTTP server similar to mochiweb, but coming with
several different handlers, simply enabling REST (through REST
protocol upgrade) and HTML5 Websockets. You can also easily implement
your own protocols on top of the Cowboy TCP acceptor. Webmachines
documentation is much better than cowboys.  But both are coming with
pretty good examples. If you need HTML5 websockets I think cowboy is
the way to go.
I used the OAuth library https://github.com/tim/erlang-oauth with
Webmachine as well as Cowboy, so no problems there.

Chicago Boss is a Webframework similar to the Python based Django and
the Ruby on Rails. It uses mochiweb or the misultin HTTP server under
the hood.

Cheers
André

On 11 April 2012 16:23, Aleksandr Vinokurov <aleksandr.vin@REDACTED> wrote:
>
>
> Hi all,
>
> I'm looking for a Web framework to use for OAuth 2.0 implementation. And
> I've heard for Cowboy, Mochiweb and Webmachine in a Web context discussions.
>
> Can you describe their differences in short words (if it is available) or
> give me a hint in what order to try them?
>
> PS. I've also heard of Chicago Boss but it seems to be very big for my task,
> am I right?
>
> With best regards,
> Aleksandr Vinokurov
> @aleksandrvin
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>



More information about the erlang-questions mailing list