AWS | Typescript Sqs Standard

This example demonstrates how to setup a SQS with Typescript.

Clone This Example

Step #1 - npm install serverless -g
Step #2 - serverless install -u https://github.com/serverless/examples/tree/master/aws-node-typescript-sqs-standard -n  aws-node-typescript-sqs-standard

Simple SQS Standard Example

This example demonstrates how to setup a SQS Standard and send messages through the message body and attributes.

Use Cases

  • Decouple message producers from message consumers.
  • This is one way to architect for scale and reliability.

Setup

  • sls deploy

Usage

  • To print out the logs of the receiver sqs handler on the terminal sls logs -f receiver -t

  • send a HTTP POST request to the sender lambda with a JSON payload

view on Github

Latest commit b2f54ec on Sep 24, 2017

New to serverless?

To get started, pop open your terminal & run:

npm install serverless -g