Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TransactionalMap vs SynchronizedMap

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?)

like image 941
missingfaktor Avatar asked Dec 13 '11 21:12

missingfaktor


1 Answers

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.

like image 189
Viktor Klang Avatar answered Nov 11 '22 01:11

Viktor Klang