Giter Club home page Giter Club logo

aws-messaging-services's Introduction

AWS Messaging Services

AWS Messaging Services Demo.

Quick start

Before you start working with project you have to install dependency and prepare configuration.

Run from command line:

npm install
copy .env.local .env

Define configuration in file: .env.

SNS

With SNS demo you can:

  1. Create SNS Topic: npm run sns1 or node sns/1_create_topic.js - when you do that, remember about save ARN in variable SNS_TOPIC_ARN (in file: .env).
  2. Run example app which will be receive messages: npm run sns2 or node sns/2_run_example_app.js (HTTP server).
  3. Subscribe topic: npm run sns3 or node sns/3_subscribe_topic.js (Important: server from #2 have to be run and accessible from Internet)
  4. Publish example message: npm run sns4 or node sns/4_publish_message.js (Important: server from #2 have to be runned and accessible from Internet)
  5. Delete SNS Topic and all subscription: npm run sns5 or node sns/5_delete_topic.js

SQS

With SQS demo you can:

  1. Create SQS queue: npm run sqs1 or node sns/1_create_queue.js - when you do that, remember about save Queue URL in variable SQS_QUEUE_URL (in file: .env).
  2. Run example app which will be receive messages: npm run sqs2 or node sns/2_run_example_worker.js (worker).
  3. Send example message: npm run sqs3 or node sns/3_send_message.js (Important: worker from #2 have to be run)
  4. Delete SQS Queue: npm run sqs4 or node sns/4_delete_queue.js

Kinesis

With Kinesis demo you can:

  1. Create Kinesis Stream: npm run kinesis1 or node sns/1_create_stream.js.
  2. Run example app which will be receive records: npm run kinesis2 or node sns/2_run_example_worker.js (worker).
  3. Put example record: npm run kinesis3 or node sns/3_put_record.js (Important: worker from #2 have to be run)
  4. Delete Kinesis Stream: npm run kinesis4 or node sns/4_delete_stream.js

aws-messaging-services's People

Contributors

wojtekk avatar

Watchers

Matt Givney 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.