Comments (6)
Cool, let me know what you find out with the cold starts and how your workloads might differ from the assessment in the guides. We can always amend them with other's knowledge and use cases.
from lamby.
Have you read this guide? https://lamby.custominktech.com/docs/cold-starts?
At a minimal, your Rails Lambda should be at 1792 which is 1vCPU. I'd be curious to hear why you need provisioned concurrency too. Lots of details please.
from lamby.
FYI, I just transferred the docs site to lamby.cloud. So that link above might have been broken for a few hours. Should be working now with redirects.
from lamby.
Thanks @metaskills , that was useful to point out, I have set memory to 1792, much faster, but still can be faster if I use the right web server, currently, I am using Puma as the web server, built for parallelism, but it will not useful to use in AWS Lambda.
I will try to remove Puma and totally depend on Bootsnap
from lamby.
but still can be faster if I use the right web server
Can you explain that? There is no web server... your application should be glued at the Rack (app) layer.
currently, I am using Puma as the web server
Wait what? No no no... no web server is needed... especially parallelism... Lambda does not work that way. Lamby should be hitting your app directly via Rack... remember... a Rails application is a Rack application. API Gateway sends events directly to it with Lamby. In fact, I'm not even sure how you would use a web server. But that's the point, you do not need one. Can you talk a little about that?
depend on Bootsnap
from lamby.
Thanks for explaining, as I have already deployed my Rails app to an EC2 cluster, I was relying on a web server, I just forgot that I will not needed it on Lambda as being a Rack application.
from lamby.
Related Issues (20)
- v4 Upgrade Guide? HOT 8
- Issue while runing ./bin/deploy from the RAils on Lambda in 5min guide HOT 14
- Outline Arm64 Steps HOT 3
- qemu-x86_64: Could not open '/lib64/ld-linux-x86-64.so.2 for M1 HOT 6
- libmysqlclient.so.18: cannot open shared object file: No such file or directory HOT 3
- Documentation on how to Add Middleware (V4) HOT 2
- Document what exact AWS-managed policies are needed for the access key HOT 5
- SIGTERM SignalException: Init error when loading handler HOT 5
- Codespaces Share HOT 1
- Don't set percent encoded queries into Rack Environment's `QUERY_STRING` HOT 1
- cannot load such file -- config/environment HOT 3
- Opinionated OpenID Connect HOT 2
- Postgres ? HOT 2
- Ensure VPC Lattice Events Work HOT 2
- Use Image Devcontainer Step in GitHub Actions
- Unable to run my app or the cookiecutter... getting error `materialize': Could not find HOT 14
- Performance vs traditional server HOT 4
- uninitialized constant Rack::RACK_MULTITHREAD HOT 5
- Local Development
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lamby.