문제

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