Erlang as a base process

I want to use Erlang for some background processing and for a web application. I read about its handling of concurrency and stuff, and I began to study it. What I want to do is to constantly connect to clients using COMET - with the Erlang process coordinating HTTP client connections.

  • To do this I need an Erlang based web server?
  • For a real implementation of how caviar works in Erlang. I downloaded the erlang book and read about spawning. In the case of a script for my website, when two clients connect to the same Erlang script by creating an HTTP request - can I automatically "create" new threads for each of them and send messages?
+3
source share
5

- erlang . erlang - .

erlang webserver . . . nitrogen mochiweb .

+5

http://beebole.com/erlang?

:

  • Erlang ( Mochiweb) Ubuntu

  • how to install nginx web server

  • video tutorial on creating a small web application using Erlang

+1
source

You should explore the YAWS (High Performance HTTP Server) modules: easy to write, fully flexible. YAWS is easy to install: apt-get install yaws (at least on Ubuntu).

+1
source

Another option would be to use Nitrogen - this makes it easy to integrate Erlang code on web pages, including a full web server, and comets.

+1
source

Source: https://habr.com/ru/post/1709296/


All Articles