[rabbitmq-discuss] multiple direct Erlang clients
Ben Browitt
ben.browitt at gmail.com
Mon Aug 3 14:26:24 BST 2009
Hi,
I'm following the Erlang client introduction:
http://hopper.squarespace.com/blog/2008/1/12/introducing-the-erlang-amqp-client.html
All the calls are made against the parent process.
For example:
amqp_channel:cast(Channel, BasicPublish, Content).
In amqp_channel the cast function is defined as:
cast(Channel, Method) ->
gen_server:cast(Channel, {cast, Method}).
When using a large number of direct Erlang clients for a gateway
implementation
where every outer client using some protocol has an Erlang client acting as
a translator,
wouldn't this design create a block at amqp_channel:cast/2 and slow things
down?
Shouldn't the client call gen_server:cast/2 directly instead of calling
amqp_channel:cast/2
and use the fact that each Erlang client is a process?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20090803/7b36b0d1/attachment.htm
More information about the rabbitmq-discuss
mailing list