jlouis / turtle

A wrapper on the RabbitMQ Erlang Client (Erlang)
Other
71 stars 15 forks source link

Why don't use a pool or multiple processes to publish? #16

Closed dcy closed 8 years ago

dcy commented 8 years ago

Hi! Why don't use a pool or multiple processes to send the message to apns? Every process has one connection. Will it handle more requests per second if use multiple processes(connections)?

jlouis commented 8 years ago

The primary reason for only having a single publisher is mostly because we don't need to push more than 50k RPC calls per second, and I know a single publisher can do that easily. In most systems, the overhead before the transport and after the transport dwarfs the actual transportation by quite a lot. Hence, we kind-of decided a single publisher was fast enough for our use.