Code Monkey home page Code Monkey logo

sns-to-sqs-local's Introduction

sns-to-sqs-local

A developer tool that starts a local web server, creates a public tunnel connection to it via ngrok, and subscribes a SNS topic to the public address auto generated by ngrok. SNS messages sent to the web server are forwarded to a local or remote SQS queue.

It is meant to be used during development to provide a stream of sample data while developing and debugging a queue consuming service. This allows the service to be debugged in as-close-production type of environment.

Quick Test

  • download or clone project
  • make a copy of local-template.env as local.env.
  • update local.env with desired variables.
  • execute: docker-compose up subscriber consumer
  • send Message to the sns topic

How to Consume for Existing Projects

On its own, this project is worthless. Its logic and config is meants to be consumed by other projects that forwards sns notifications to queue to be consumed by a queue consumer. So here is high-level overview on how to import to a existing project.

  • download or clone project
  • copy subscriber directory to existing project
  • add subscriber service to existing docker-compose
    • update any docker-compose that may need to be changed
  • import env variables to projects (see local-template.env)
  • update any variables or settings that are required

sns-to-sqs-local's People

Contributors

sgtoj avatar

Stargazers

 avatar  avatar

Watchers

 avatar  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.