I'm a game server developer. I'm using hazelcast for my game server (SmartfoxServer 2x) to avoid request db directly. But I wonder how to use hazelcast to get the best performance:
- Always create new hazelcast client instance when access cache and then shutdown it. Or
- Create a hazelcast client instance pool, and reuse. Never shutdown until application end. Or
- Create only one hazelcast client instance, never shutdown until application end. Or
- Make my realtime server as a hazelcast member.
What's the right way? My system serve for about 5000 CCU.
My game is a kind of card game - turn based. Each game occurs in about 2 minutes, with maximum 4 players. When It end, I have to log every transactions (money change), and new money value for user. With 5000 ccu, in worst case, at the same time there're (5000/4) * (4 + 4) = 10000 entries have to be logged. It cannot be done with mysql queries directly (slow), but with hazelcast, it's possible, right? But I'm a newbie in Hazelcast technique, so I don't know what is the right way to solve my issue.
Thank in advance,