Questions about gen_server

Vladimir Sekissov svg@REDACTED
Fri Feb 14 03:53:18 CET 2003

Hi, Enrique,

mpquique> Is it reasonable to implement a server that expands a worker
mpquique> for every incoming request?
mpquique> Up to a limited number of course (some kind of pool 
mpquique> of workers).  Would such a pool fit into a gen_server? How? Are these 
mpquique> workers gen_servers also?
mpquique> Do I see gen_servers everywhere?

In the attachment there is an implimentation of "connection pool" I
wrote for my own needs (ODBC connection pool).
Example of usage is in connection_pool_SUITE.erl(test module for
Erlang Test Server).
Little documentation is in EDOC format in connection_pool.erl
In directory svglib are my helper modules.

Implementation consists from pool manager `connection_pool' and pool
supervisor `connection_pool_sup'. Varying supervisor parameters you
can achieve any pool management policy you want. Pool worker can be
`gen_server' or "hand made" server process (look at

I decided to send you this code in hope that it help you a little.

Best Regards,
Vladimir Sekissov
-------------- next part --------------
A non-text attachment was scrubbed...
Name: connection_pool.tar.gz
Type: application/octet-stream
Size: 12389 bytes
Desc: not available
URL: <>

More information about the erlang-questions mailing list