Giter Site home page Giter Site logo

Comments (6)

metaskills avatar metaskills commented on June 1, 2024 1

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.

metaskills avatar metaskills commented on June 1, 2024

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.

metaskills avatar metaskills commented on June 1, 2024

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.

hopewise avatar hopewise commented on June 1, 2024

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.

metaskills avatar metaskills commented on June 1, 2024

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.

hopewise avatar hopewise commented on June 1, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.