There are various possible ways, but use one partition per node is definitely a bad idea, because you're loosing scaling possibilities. If you have 5 partitions and 5 nodes, then 6 node will be empty.
It's much better if you in AffinityFunction.partition() method will calculate node according to your key. If you have key 1-10000 it should go to partitions that belong to a single node. But at the same time method assignPartitions() should assign related partitions to the same node. Or (bad solution, but easier), use 5 partitions, distribute across nodes and put related keys to proper partition. Thanks! -Dmitry -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/
