First, I typed code that send push notification to players in all user segment.
const serverWorker = require('./node_modules/playfab-sdk/Scripts/PlayFab/PlayFabServer'); while (counts < 10000) { try { serverWorker.SendPushNotification({ AdvancedPlatformDelivery: message, Recipient: playerList[counts] //playerList.length is 10000 }); } catch{ } counts++; }
And this logic will repeat 30 times, because number of my players is about 300,000...
But there is one problem that this logic makes process heavy..(about 6gb memory...)
So, how can I send push notification to massive users in low memory?
,First, I typed code that send push notification to players in all user segment.
const serverWorker = require('./node_modules/playfab-sdk/Scripts/PlayFab/PlayFabServer'); while (counts < 10000) { try { serverWorker.SendPushNotification({ AdvancedPlatformDelivery: message, Recipient: playerList[counts] }); } catch{ } counts++; }
And this logic will repeat 30 times, because number of my users is about 300,000.
But there is one problem that this logic makes process heavy..(about 6gb memory...)
So, how can I send push notification in low memory?
Or can I use SendPushNotification without response of http.request?