Best practices for using Amazon SQS - Polling the queue

前端 未结 5 1228
北恋
北恋 2021-02-07 20:13

I\'m designing a service for sending out emails for our eCommerce site (order confirmations, alerts etc...) The plan is to have a \"SendEmail\" method, that generates a chunk of

5条回答
  •  不知归路
    2021-02-07 20:31

    If I were you, and if I REALLY wanted to make SQS work for this scenario, I would create a windows service that retrieves any messages from the queue every 10 minutes and then dispatches them.

    If I could potentially use a different service, I would seriously consider using something like Postmark (Which I just found out about today thanks to a comment on Jeff Atwood’s blog post). You would just submit your email message info to their api, and they would do the rest. They even have a api for checking for bounced emails. I have never used this service, but I think it sounds great and would seriously consider using it in the future.

提交回复
热议问题