Re: Design help implementing custom counter on ignite

2018-02-06 Thread dkarachentsev
Hi, Transaction here might be a not optimal solution, as it by default optimistic and may throw optimistic transaction exception. I believe the best solution would be to use EntryProcessor [1], it will atomically modify entry as on TRANSACTIONAL as on ATOMIC cache on affinity data node (that

Design help implementing custom counter on ignite

2018-02-05 Thread Mansur.Ashraf
Hey guys, I am new to Ignite and trying to implement a custom counter. I read the document and it seems like I can implement my counter in three different ways so need some help figuring out which approach to take. //business logic in pseudo code Ignite ignite = Ignition.ignite();