Lebanese Putin
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 ??
5 replies
concurrency and atomicity Asp.net core web api and efcore
let's say there's an endpoint called AssingUser() ,this endpoint assigns one donation to this current user who requested it, the idea is that , in the mobile application front end, the view of assignment is shared between many users , so let's say two users clicked at the same time to be assigned to this current donation, how can i make sure that one and only one is able to be set at this same time ? I'm not sure if i delivered what i want clearly 😅
37 replies