{"id":19274079,"url":"https://github.com/sbstjn/lawos-serverless","last_synced_at":"2025-04-21T22:33:31.520Z","repository":{"id":137671231,"uuid":"84311206","full_name":"sbstjn/lawos-serverless","owner":"sbstjn","description":"Serverless example for an SQS Worker in AWS Lambda using Lawos","archived":false,"fork":false,"pushed_at":"2017-03-09T21:10:54.000Z","size":8,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-01T16:31:52.802Z","etag":null,"topics":["aws","lambda","lawos","serverless","sqs","sqs-poller","sqs-queue","worker"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sbstjn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-08T11:04:08.000Z","updated_at":"2019-11-07T11:33:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"2c6f64d5-0401-4884-8850-b95e853255ae","html_url":"https://github.com/sbstjn/lawos-serverless","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbstjn%2Flawos-serverless","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbstjn%2Flawos-serverless/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbstjn%2Flawos-serverless/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbstjn%2Flawos-serverless/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sbstjn","download_url":"https://codeload.github.com/sbstjn/lawos-serverless/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250145413,"owners_count":21382410,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","lambda","lawos","serverless","sqs","sqs-poller","sqs-queue","worker"],"created_at":"2024-11-09T20:45:00.822Z","updated_at":"2025-04-21T22:33:31.510Z","avatar_url":"https://github.com/sbstjn.png","language":"JavaScript","readme":"# SQS Worker for AWS Lambda with Lawos\n\n[![serverless](http://public.serverless.com/badges/v3.svg)](http://www.serverless.com)\n[![license](https://img.shields.io/github/license/sbstjn/lawos-serverless.svg)](https://github.com/sbstjn/lawos-serverless)\n\nExample usage of [Lawos](https://github.com/sbstjn/lawos) with [Serverless](https://serverless.com) to process messages from an Amazon SQS queue with AWS Lambda functions.\n\n## Setup\n\n - Use CloudWatch Schedule to run Lambda function every minute\n - Use CloudWatch Alarms to run Lambda function if SQS contains more than 100 messages\n\n## Install\n\n```bash\n$ \u003e git clone git@github.com:sbstjn/lawos-serverless.git \u0026\u0026 cd lawos-serverless\n$ \u003e npm install\n```\n\n## Deployment\n\n```bash\n$ \u003e npm run deploy\n```\n\n## Invoke worker\n\n```bash\n$ \u003e npm run invoke\n```\n\n## Add noise to SQS\n\nUse [wrk](https://github.com/wg/wrk) to add some messages to your SQS queue. You need to enable [anonymous access to sendMessage](http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/acp-overview.html#anonQueues) for your queue first!\n\n```\n$ \u003e wrk -c25 -d10 -t15 \\\n    -s helper/wrk.lua \\\n    https://sqs.eu-west-1.amazonaws.com/YourAccountID/dev-lawos-serverless-backlog\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsbstjn%2Flawos-serverless","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsbstjn%2Flawos-serverless","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsbstjn%2Flawos-serverless/lists"}