<html><head></head><body dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="ApplePlainTextBody"><div class="ApplePlainTextBody">At first glance, I'd agree with Pedro.<br><br><blockquote type="cite">On 2 Nov 2017, at 16:07, Pedro Ruivo &lt;pedro@infinispan.org&gt; wrote:<br><br>Hi,<br><br>IMO, I would separate the concept of counter and configuration.<br><br>Even if an user doesn't create many counters, I think most of them will <br>share the same configuration. As a bad example, if you want to counter <br>oranges and apples, you're going to use the same configuration... <br>probably :)<br><br>In addition, it is symmetric to the cache DMR tree. This would reduce <br>the learning curve if the user is already used to cli (i.e create caches).<br><br>Cheers,<br>Pedro<br><br><br><br>On 02-11-2017 12:33, Vladimir Blagojevic wrote:<br><blockquote type="cite">Hey guys,<br><br>How do you anticipate users are going to deal with counters? Are they<br>going to be creating a lot of them in their applications, say dozens,<br>hundreds, thousands?<br><br>I am asking because I have a dilemma about their representation in DMR<br>and therefore in the admin console and potentially wider. The dilemma is<br>related to splitting the concepts and the mapping between counter<br>configuration and counter instances. On one end of the possible spectrum<br>use, if users are going to have many counters that have the same<br>configuration then it makes sense to delineate the DMR concept of the<br>counter configuration and its counter instance just like we do for<br>caches and cache configuration templates. We deal with cache<br>configurations as templates; one could create hundreds of caches from<br>the same template. Similarly, we can do with counters. On the other end<br>if users are going to create very few counters then it likely does not<br>make much sense to separate counter configurations from its instance,<br>they would have one to one mapping. For each new counter, users would<br>just enter counter configuration and launch an instance of a<br>corresponding counter.<br><br>The first approach saves resources and makes large counter<br>instantiations easier while the second approach is easier to understand<br>conceptually but is inefficient if we are going to have many counter<br>instance.<br><br>Thoughts?<br><br>Vladimir<br><br>_______________________________________________<br>infinispan-dev mailing list<br>infinispan-dev@lists.jboss.org<br>https://lists.jboss.org/mailman/listinfo/infinispan-dev<br><br></blockquote>_______________________________________________<br>infinispan-dev mailing list<br>infinispan-dev@lists.jboss.org<br>https://lists.jboss.org/mailman/listinfo/infinispan-dev<br></blockquote><br>--<br>Galder ZamarreƱo<br>Infinispan, Red Hat<br><br></div></body></html>