{"id":15661207,"url":"https://github.com/phstc/shoryuken-serverless","last_synced_at":"2025-05-05T21:43:18.395Z","repository":{"id":35967983,"uuid":"159898933","full_name":"phstc/shoryuken-serverless","owner":"phstc","description":"PoC for Shoryuken Serverless - SQS as an Event Source for Lambdas","archived":false,"fork":false,"pushed_at":"2022-12-14T04:32:01.000Z","size":28841,"stargazers_count":19,"open_issues_count":10,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-31T00:01:34.560Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/phstc/shoryuken/wiki/Shoryuken-Serverless---SQS-as-an-event-source-for-Lambdas","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phstc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-01T01:57:07.000Z","updated_at":"2024-03-12T15:55:42.000Z","dependencies_parsed_at":"2023-01-16T10:02:39.716Z","dependency_job_id":null,"html_url":"https://github.com/phstc/shoryuken-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/phstc%2Fshoryuken-serverless","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phstc%2Fshoryuken-serverless/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phstc%2Fshoryuken-serverless/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phstc%2Fshoryuken-serverless/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phstc","download_url":"https://codeload.github.com/phstc/shoryuken-serverless/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252582242,"owners_count":21771634,"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":[],"created_at":"2024-10-03T13:26:23.551Z","updated_at":"2025-05-05T21:43:18.375Z","avatar_url":"https://github.com/phstc.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Shoryuken Serverless\n\nThis is a PoC for making existing [Shoryuken](https://github.com/phstc/shoryuken) (Active Job or Standard workers) to work with [Lambda Ruby using SQS as an event source](https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html).\n\n### Shoryuken Lambda\n\nCheck [this sample Lambda](https://github.com/phstc/shoryuken-serverless/blob/master/rails_sample_app/lambda.rb) for an example of Shoryuken compatible Lambda\n\nIt is important to load Rails outside the method `handler` so that it gets \"cached\" while your Lambda (container) is still hot.\n\n#### Lambdas vs Queues\n\nThe number of Lambdas or queues is entirely up to you. You can use multiple queues and Lambdas - it is all up-to-you.\n\n### Deploy your Lambdas\n\nFor deploying your Ruby Lambdas, you need to vendorize your gems with the same container Ruby Lambdas run.\n\n```sh\ndocker run -v `pwd`:`pwd` -w `pwd` -i -t lambci/lambda:build-ruby2.5 bundle install --deployment --without development test\ndocker run -v `pwd`:`pwd` -w `pwd` -i -t lambci/lambda:build-ruby2.5 gem pristine --all\n```\n#### Deploy with aws-cdk\n\nThis sample app uses [aws-cdk](https://github.com/awslabs/aws-cdk) for making it easy to create stacks and deploy Lambda.\n\nFor deploying your stack using this sample project, you can run the commands below (or `./deploy.sh`).\n\n```sh\n(\n  cd rails_sample_app\n  docker run -v `pwd`:`pwd` -w `pwd` -i -t lambci/lambda:build-ruby2.5 bundle install --deployment --without development test\n  docker run -v `pwd`:`pwd` -w `pwd` -i -t lambci/lambda:build-ruby2.5 gem pristine --all\n)\nnpm run build\ncdk deploy\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphstc%2Fshoryuken-serverless","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphstc%2Fshoryuken-serverless","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphstc%2Fshoryuken-serverless/lists"}