https://github.com/kizza/serverless-marco-polo
A basic call-response using queues in serverless
https://github.com/kizza/serverless-marco-polo
Last synced: 2 months ago
JSON representation
A basic call-response using queues in serverless
- Host: GitHub
- URL: https://github.com/kizza/serverless-marco-polo
- Owner: kizza
- Created: 2024-12-15T01:40:44.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-12-15T05:28:02.000Z (6 months ago)
- Last Synced: 2025-02-14T11:24:58.406Z (4 months ago)
- Language: TypeScript
- Size: 78.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Serverless Marco Polo
An example of the serverless framework deploying a lambda to publish a message to an SNS topic ("Marco"), which is in
turn put on a SQS queue, and read by a second lambda ("Polo").## Usage
Populate `.env` and `.env.prod` files as per the `.env.example`.
Deploy to various stages with the following:```
yarn deploy --stage dev
yarn deploy --stage prod
```Hit the endpoint provided for the `/marco` lambda, then check the polo logs (via Cloudwatch or `yarn logs --function polo`
## Discussion
Uses `serverless-esbuild` with config file `config.esbuild.js` for greater flexibility over the inbuilt `esbuild`.
This implementation uses es module bundles and implements `dotenv` variables.