Why hazelcast has default partition count of 271 and what are the parameters to chose one?
I just went through the hazelcast documentation. It suggests that data partitioned across all the nodes. And the number of partitions created in cluster 271 by default ! What parameters govern the selection of right partition count value. And why default partition count is 271 ? 271 is a prime number. And given any key, Hazelcast will hash the key and mod it with the partition count. In this context, prime numbers are believed to generate more pseudo-random result. Actually for user perspective, it is not that important to have it prime. Then you may ask, why 271 but not other prime number.