mirumee / lynara

Python ASGI applications in an AWS Lambda runtime
https://mirumee.github.io/lynara/
BSD 3-Clause "New" or "Revised" License
9 stars 0 forks source link

[Question] Is this package suitable for deploying on other serverless infrastructure, like GCP Cloud Functions and Cloud Run? #1

Closed steve-marmalade closed 5 days ago

steve-marmalade commented 2 months ago

Hi team, I have been deploying my Ariadne application on GCP Cloud Run using uvicorn and it has worked reasonably well, although I often have suspected that the serverless nature of the runtime (unallocating CPU immediately after sending a response) might not be the perfect fit. Do you recommend using lynara when deploying on any serverless infrastructure, or is this package meant specifically to translate Lambda Events into HTTP Requests?

pkucmus commented 1 month ago

Good question and the short answer would be that there is no support for anything else than AWS Lambdas right now, but the only reason for that is that the matter was never explored.

Depends on how a GCP Cloud function works (I don't have any experience with those) but I can't imagine it something drastically different than what AWS does, so with some modifications the Lynara Interface layer should be able to "translate" to ASGI - those are just thoughts though.

On a side note, if you don't need the ASGI layer with Ariadne you could use Ariadne Lambda for a simpler setup, but then again it's also AWS oriented and changing that would entail more or less the same steps as for Lynara.

pkucmus commented 5 days ago

Did I answer the question?

steve-marmalade commented 5 days ago

Yes, thank you! I actually ended up deploying to a GCP Managed Instance Group to avoid some of the challenges with serverless. :pray: