Notifications and Background services

Hello, i have question:
let's say i want the admin to be able to send notifications to all the users in my asp.net core web api application,
the point is that i'm not sure what's the best way to do this?

options 1 :

from inside the endpoint i call the google api that send the notification to the users
option 2 :

i insert a record in the announcement table and i create a background service that's responsible for sending these notifications.
what't the best approach for doing this ??
Was this page helpful?