开发者

Typical erlang web/enterprise application architecture?

开发者 https://www.devze.com 2023-02-13 18:23 出处:网络
Is there a web app framework written in erlang? How common is to use erlang for building web apps? Is there a recommended app stack. Erla开发者_开发知识库ng, CouchDB,....,?In my opinion, the best erl

Is there a web app framework written in erlang? How common is to use erlang for building web apps? Is there a recommended app stack. Erla开发者_开发知识库ng, CouchDB,....,?


In my opinion, the best erlang web framework is Chicago Boss.
It has MVC architecture and many things like in Rails. It also has fully support of MySQL, MongoDB, PostgreSQL. Chicago Bos has builtin comet server.
There is comparison of erlang web frameworks.


Of course there is. E.g. see WebMachine, Erlyweb, Nitrogen et al.


If you are creating something that looks like an API, use webmachine. It's a fantastic project - I use it at work to create large scale ad feeds.

If you need something that looks like a UI, you should check out nitrogen, and chicago boss. I have used nitrogen on a couple of small projects, but as of this writing I have not tried CB. CB seems to look a lot like rails - MVC, DB support built in, and some magic to glue it all together. Nitrogen uses an event-driven model, has tightly integrated Ajax support, and does not provide a DB layer.

Your choice of DB should obviously be driven by the needs of your project. There are drivers for most everything: mysql, redis, mongo, etc. I'm personally a big fan of riak for a number of reasons, but chiefly because of its master-less replication and pluggable backends.


See Nitrogen Web Framework

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号