when i've run this on serverless infrastructure sometimes the server side processing fails to run.
I'm not saying sending all things to the event queue but things that can be delayed e.g. emailing, creating multiple records, background jobs that you may want to run like fetching data from an endpoint (can't control other's servers) could work much better in a queue.
Then just have a service like https://docs.quirrel.dev/api/cronjob/ or an actual cron job or some other event trigger a processing script to process the oldest unprocessed events
when i've run this on serverless infrastructure sometimes the server side processing fails to run.
I'm not saying sending all things to the event queue but things that can be delayed e.g. emailing, creating multiple records, background jobs that you may want to run like fetching data from an endpoint (can't control other's servers) could work much better in a queue.
Then just have a service like https://docs.quirrel.dev/api/cronjob/ or an actual cron job or some other event trigger a processing script to process the oldest unprocessed events