Best practices for using Amazon SQS - Polling the queue

前端 未结 5 1244
北恋
北恋 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:53

    Windows service is the best way, but you must not take it. To run background job in ASP.NET environment there is HostingEnvironment.QueueBackgroundWorkItem. A good starting point to implement continues polling (via long polling) is sqs-consumer.

提交回复
热议问题