Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nhatthaiquang-agilityio/dotnet3.0-backgroundjobs-with-sqs
Read messages from Amazon SQS and then run Background Job
https://github.com/nhatthaiquang-agilityio/dotnet3.0-backgroundjobs-with-sqs
amazon-sqs aws-cognito background-jobs docker docker-compose dotnet-core hangfire sns
Last synced: about 1 month ago
JSON representation
Read messages from Amazon SQS and then run Background Job
- Host: GitHub
- URL: https://github.com/nhatthaiquang-agilityio/dotnet3.0-backgroundjobs-with-sqs
- Owner: nhatthaiquang-agilityio
- Created: 2019-10-15T08:56:26.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-26T01:13:52.000Z (over 3 years ago)
- Last Synced: 2024-04-16T07:09:38.908Z (9 months ago)
- Topics: amazon-sqs, aws-cognito, background-jobs, docker, docker-compose, dotnet-core, hangfire, sns
- Language: C#
- Homepage:
- Size: 65.4 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](./images/Workflow.png)### Reference
+ [SQS Sample](https://github.com/awslabs/aws-sdk-net-samples/blob/master/ConsoleSamples/AmazonSQS_Sample/AmazonSQS_Sample/Program.cs)
+ [Queue Processing with Worker Service](https://medium.com/@nickfane/queue-processing-with-net-core-worker-services-eaccff28ba69)
+ [Authentication in ASP.NET Core Web API with Amazon Cognito](http://snevsky.com/blog/dotnet-core-authentication-aws-cognito)
+ [OpenId Connect Authorization with AWS Cognito](https://medium.com/@robert.broeckelmann/openid-connect-authorization-code-flow-with-aws-cognito-246997abd11a)