In my app, I have a schedule option where user can select any time to send a mail to other users. We’re expecting lot of users to use this feature. So at any given minute there might be hundreds of messages we need to send out.
What is the efficient way to this?
Only idea I have in mind is creating a cron job which runs every minute and check for the messages needs to be sending out.
Anyone knows any better way ? something like queuing services where we send a call and at the scheduled time triggering webhook or something like that.
In my app users can edit the scheduled time too.