Skip to content

Commit baae568

Browse files
authored
Merge pull request #451 from jmpfrazao/aws-node-typescript-sqs-standard
New example of SQS with Typescript
2 parents e8e648b + afb0e27 commit baae568

File tree

12 files changed

+5126
-0
lines changed

12 files changed

+5126
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ serverless install -u https://github.com/serverless/examples/tree/master/folder-
9393
| [Baddadjokesbot](https://github.com/serverless/examples/tree/master/aws-node-twitter-joke-bot) | nodeJS |
9494
| [Nest Serverless](https://github.com/serverless/examples/tree/master/aws-node-typescript-nest) <br/> serverless app | nodeJS |
9595
| [Typescript Example](https://github.com/serverless/examples/tree/master/aws-node-typescript-rest-api-with-dynamodb) | nodeJS |
96+
| [Aws Node Typescript Sqs Standard](https://github.com/serverless/examples/tree/master/aws-node-typescript-sqs-standard) <br/> Serverless example using Standard SQS with TypeScript | nodeJS |
9697
| [Upload To S3 And Postprocess](https://github.com/serverless/examples/tree/master/aws-node-upload-to-s3-and-postprocess) <br/> Upload a files to S3 to trigger a lambda function. | nodeJS |
9798
| [Aws Node Vue Nuxt Ssr](https://github.com/serverless/examples/tree/master/aws-node-vue-nuxt-ssr) <br/> Sample project for using Nuxt.js to create a server-side rendered Vue.js app on AWS Lambda and AWS API Gateway. Can easily integrate with your own API or 3rd party APIs such as headless CMS, e-commerce or serverless architecture. | nodeJS |
9899
| [Aws Nodejs Websockets Authorizers](https://github.com/serverless/examples/tree/master/aws-node-websockets-authorizers) <br/> Simple example that demonstrates how to use authorizer functions with websocket events | nodeJS |
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# package directories
2+
node_modules
3+
jspm_packages
4+
5+
# Serverless directories
6+
.serverless
7+
8+
# Webpack directories
9+
.webpack
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<!--
2+
title: 'AWS SQS Standard Example (NodeJS & Typescript)'
3+
description: 'This example demonstrates how to setup a SQS with Typescript.'
4+
layout: Doc
5+
framework: v1
6+
platform: AWS
7+
language: nodeJS
8+
authorLink: 'https://github.com/jmpfrazao'
9+
authorName: 'Miguel Frazao'
10+
authorAvatar: 'https://avatars3.githubusercontent.com/u/28927258?s=460&v=4'
11+
-->
12+
# Simple SQS Standard Example
13+
14+
This example demonstrates how to setup a SQS Standard and send messages through the message body and attributes.
15+
16+
## Use Cases
17+
- Decouple message producers from message consumers.
18+
- This is one way to architect for scale and reliability.
19+
20+
## Setup
21+
- sls deploy
22+
23+
## Usage
24+
- To print out the logs of the receiver sqs handler on the terminal
25+
`sls logs -f receiver -t`
26+
27+
- send a HTTP POST request to the sender lambda with a JSON payload
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export { default as sender } from './sqs/sender';
2+
export { default as receiver } from './sqs/receiver';

0 commit comments

Comments
 (0)