Reputation: 263
I am developing a social network app using node.js and as any app with this category it contains posts and I want to send a notification for all the followers of the user when a new post added.
I have fcm tokens for all users but I want to find the best way to achieve that without causing any server overloads.
I am using mongoose as orm and MongoDB as a database
Can I achieve this with fcm or should I move to twilio or any service
Upvotes: 1
Views: 1233
Reputation: 2573
Yes, you can achieve this with FCM(Firebase Cloud Messaging).
You would have to figure out the implementation details as that is custom to your project requirements.
But on the question of if it's possible or not and server overload: I'm very sure it's possible, and by thoughtfully creating device-groups or topics that allow you to send messages to multiple devices(in-a-go), there shouldn't be an overload on your servers, the FCM server should handle most of the workload. More details here.
Upvotes: 2