Giter VIP home page Giter VIP logo

communication-dotnet-aws-sns-sqs's Introduction

.NET AWS SNS/SQS Example

graph TD;
    A[.NET Service A] -->|Publish Message| B[AWS SNS Topic]
    B -->|Subscribe| D[AWS SQS Queue 1]
    B -->|Subscribe| E[AWS SQS Queue 2]
    D -->|Consume| G[.NET Service B]
    E -->|Consume| H[.NET Service C]

Overview

This project demonstrates a minimal setup to use AWS SNS and SQS with .NET. It includes examples for publishing messages to an SNS topic, subscribing an SQS queue to that topic, and consuming messages from the queue.

Table of Contents

  1. Prerequisites
  2. Installation
  3. Configuration
  4. Usage
  5. Contributing
  6. License

Prerequisites

  • .NET Core 3.1 or higher
  • AWS CLI configured with appropriate permissions
  • AWS SDK for .NET (AWSSDK.Core, AWSSDK.SNS, AWSSDK.SQS)

Installation

  1. Clone the repository:

    git clone [email protected]:JustJordanT/communication-dotnet-aws-sns-sqs.git
  2. Navigate to the project directory:

    cd dotnet-aws-sns-sqs-example
  3. Restore the project:

    dotnet restore

Configuration

  1. Rename the appsettings.json.example file to appsettings.json and fill in the required AWS credentials and configurations.

    {
      "AWS": {
        "Region": "your-aws-region",
        "AccessKeyId": "your-access-key-id",
        "SecretAccessKey": "your-secret-access-key"
      },
      "SNS": {
        "TopicARN": "your-sns-topic-arn"
      },
      "SQS": {
        "QueueURL": "your-sqs-queue-url"
      }
    }

Usage

Publish to SNS Topic

Run the following command to publish a message to the SNS topic:

dotnet run --project ./src/Publish

Consume from SQS Queue

Run the following command to start consuming messages from the SQS queue:

dotnet run --project ./src/Consume

Contributing

  1. Fork the repository.
  2. Create a new feature branch.
  3. Make your changes.
  4. Submit a pull request.

For more details, see CONTRIBUTING.md.

License

This project is licensed under the MIT License. See LICENSE.md for details.


Feel free to adapt this README to better suit your project's specific needs.

communication-dotnet-aws-sns-sqs's People

Contributors

justjordant avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.