When should one prefer Akka TransactionalMap over regular immutable map mixed in with SynchronizedMap and vice versa? (Or am I comparing apples to oranges here?)

有帮助吗?

解决方案

Use the transactional map when you want to have transactions. Use Ctries/ConcurrentHashMap/NonblockingHashMap for mixed read-writes and CAS+immutable.Map for very-very-infrequent writes.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top