Add warning to Akka DD docs about freq add/deletes of top-level entit… (#21269)

* Add warning to Akka DD docs about freq add/deletes of top-level entities - fixes #21249
This commit is contained in:
Jamie Longmuir 2016-08-25 10:47:58 -04:00 committed by Patrik Nordwall
parent efc87af58a
commit 440848c741
2 changed files with 16 additions and 0 deletions

View file

@ -240,6 +240,14 @@ Subscribers will receive ``Replicator.DataDeleted``.
.. includecode:: code/docs/ddata/DistributedDataDocSpec.scala#delete
.. warning::
As deleted keys continue to be included in the stored data on each node as well as in gossip
messages, a continuous series of updates and deletes of top-level entities will result in
growing memory usage until an ActorSystem runs out of memory. To use Akka Distributed Data
where frequent adds and removes are required, you should use a fixed number of top-level data
types that support both updates and removals, for example ``ORMap`` or ``ORSet``.
Data Types
==========