Flutter app in production with a Laravel backend that sends notifications to the app via FCM.
My server has the following specifications:
1 vCPU, 2GB RAM, 10GB SSD, 2TB transfer.
When I send 600 notifications simultaneously, the server reaches 100% CPU usage. Is this normal given the server’s specifications, or might there be an issue with the code?
What are the best practices for handling this?
Are there specific server requirements to ensure notification delivery without overloading?
Thanks in advance to anyone with experience who can help answer.
why do you send them simultaneously? split them in chunks or create some cron job to distribute them evenly
I already divide it into blocks, I make 2 chunks of 75 sends in parallel, once finished, I relaunch another 2 chunks of 75 sends, so on until everything is finished... But with this management it takes up 100% of the server's CPU. Possible?
Обсуждают сегодня