Skip to content

nhatthaiquang-agilityio/dotnet3.0-backgroundjobs-with-sqs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DotNet Background Jobs And Amazon SQS & SNS

  • Read messages from Amazon SQS and then run Background Job
  • Amazon SNS: Publish message to Email

Prerequisite

  • Asp Net Core 3.0
  • Entity Framework
  • Docker & Docker Compose
  • Amazon SQS
  • Amazon SNS
  • Hangfire for running Jobs
  • Redis(Using Hangfire)

Requirements

  • Add AWS Key Environments into docker-compose file
  • Create a Queue(MyQueue1) in SQS
  • Create a Topic(MyTopic) in SNS
  • Create a AWS Cognito

Issue

  • Need to add Aws access Key and Aws Secret Key in SnsMessage file.

Notes

  • AWS Congito:
    • Using OpenId: Error: The system doesn't understand the request
      • Need to create a domain name in AWS Cognito
    • Using JWT Bearer:
      • Add app.UseAuthentication(); berfore app.UseAuthorization(); in startup.cs file

Overview

  • Overview

Reference