Вопрос

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