<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16825" name=GENERATOR></HEAD>
<BODY>
<DIV>Hi all,</DIV>
<DIV>Newbie with Erlang I don't master (yet) this language.</DIV>
<DIV>Because of this, I would like to submit you an architecture and I hope to
receive a feedback from you.</DIV>
<DIV> </DIV>
<DIV>A multi-server multi-protocol
application<BR>=========================================</DIV>
<DIV> </DIV>
<DIV>Rules:<BR>- At each server (server_A, server_B,...) is associated one port
and one applicative protocol.<BR>- On each server could be connected several
clients using the applicative protocol.<BR>- After analysis (syntax, semantic)
of the messages sent by the client, one row will be inserted into<BR>the mySQL
database.<BR>- Each module, servers, process can write a message into a log
(alert, warning, etc.).<BR>- Each one can run on a different machine.<BR>- The
database will be redundant.<BR>- the application will run 24x24 7x7.</DIV>
<DIV> </DIV>
<DIV>
+----------------+<BR>
| Application
|<BR>
+--------+-------+<BR>
|
<BR>
+--------+--------+<BR>
| Application_sup
|<BR>
+--------+--------+<BR>
| (one_for_one)<BR>
+----------------+---+----------------------+<BR>
|
|
|<BR> +-------+------+
+-------+---------+ +------+------+<BR> |
Log_messages | + mySQL interface
| + servers_sup
+<BR> +--------------+
+-----------------+
+-------------+<BR>
|
(one_for_one)<BR>
+------------+-+---------------+<BR>
|
|
|<BR>
+----+-----+ +----+-----+
+----+-----+<BR>
| server_A | +
server_B | ... | server_Z
|<BR>
+----+-----+ +----+-----+
+----+-----+<BR>
|
|
|
<BR>
(one_for_one)
|
...
...<BR>
+----------------+-------+<BR>
|
|<BR> +-------+-----+
+-------+--------+<BR>
| tcp_listener
|
+ tcp_client_sup
|<BR>
+--------------+
+-------+--------+<BR>
|
(simple_one_for_one)<BR> +-----|---------+<BR>
+-------|--------+|<BR>
+--------+-------+|+<BR>
|
tcp_client
|+<BR>
+--------+-------+<BR> <BR>Does my architecture coherent
with the OTP model ?<BR>Could my architecture be better ? how
? <BR>How to add one "server branch" without
stopping the application ? </DIV></BODY></HTML>