Hi,
OK, so I have a need to maintain a (variable) number of counters that are shared between multiple instances of a handler. Obviously, Globals are not the way to go and for performance purposes, I don't really want to store them in a database...
So, I'm thinking of using either Accumulators or Structured Parameters. I figure Accumulators, being in-memory, will be faster and have the benefit of supporting locking to prevent race conditions. I don't believe they sync across a Switchover Pair though (I may be wrong on that) Also, can anyone confirm if, when you attempt to Lock an Accumulator, does the "Lock Accumulator" step pause if it is already locked, or fail? The documentation isn't clear on that!
Structured Parameters, being stored in DS, should sync (and I believe I can view their current values in IA) but like most DS operations, I figure they will be slower and since there is no way to lock them, I am thinking Semaphore Lock.
Has anyone got experience of using either (or preferably both!) of these approaches that they care to share? Any other tripwires I haven't considered?
TIA
#Handlers