You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 18, 2019. It is now read-only.
final ShardedCounterService shardedCounterService = new ShardedCounterServiceImpl();
shardedCounterService.increment(counterName, 1);
final Optional<Counter> optCounter = shardedCounterService.getCounter(counterName);
BigInteger newQueueItemCount = optCounter.get().getCount();
If I do a load test on this, I get quite bad performance: spikes several seconds long, for a load of less than 20r/s.
This when I already have a bunch of instances warmed up and 10 shards for my counter.
I've tried higher shard counts, but it does not give much better result.
If I remove the "increment" line I get much better result (300ms max responsetimes for the same amount of instances, 20r/s, etc) (But of course; I dont get a working counter :)
Am I misunderstanding something gravely here? :-)
Should this not be possible?