#1904 - Clearing up performance aspects of using ask

This commit is contained in:
Viktor Klang 2012-03-16 13:53:32 +01:00
parent 807843591c
commit 9cee78bc54
2 changed files with 14 additions and 0 deletions

View file

@ -331,6 +331,13 @@ Messages are sent to an Actor through one of the following methods.
Message ordering is guaranteed on a per-sender basis.
.. note::
There are performance implications of using ``ask`` since something needs to
keep track of when it times out, there needs to be something that bridges
a ``Promise`` into an ``ActorRef`` and it also needs to be reachable through
remoting. So always prefer ``tell`` for performance, and only ``ask`` if you must.
Tell: Fire-forget
-----------------