Hi, Igniters! It's a common request from users to have an ability to configure cache partitions count through thin clients. Currently, users can solve this problem only by using configured on the server-side cache templates, but it's not always possible and not flexible enough. The problem with partitions count lies in the fact that it's a parameter of the affinity function, and the affinity function is a java class. We've discussed this problem with Maksim Timonin privately, but didn't come to a common decision.
Here are options I see: 1. Technically, we have all possibilities to pass configured affinity function from clients to server, if affinity function/backup filter classes already on servers (in 99.99% cases built-in rendezvous affinity function is used, without filters or with one of built-in filters), using this approach we keep similarity between ClientCacheConfiguration and CacheConfiguration, but we also have some cons, for example, it's applicable only for java thin client and it's required to have an affinity function class on client-side. 2. We can include just one parameter to ClientCacheConfiguration: "partitions count" and create the default affinity function on server-side with this partitions count. In this case we add inconsistency between ClientCacheConfiguration and CacheConfiguration (btw, they already have a difference in parameters and don't have common superclass or interface), but reduce complexity for users. Personally, I think option 2 is better. WDYT? Any other options?
