Next.js Discord

Discord Forum

Suggestions for deploying Python Packages larger than the 50MB Lambda Limit.

Unanswered
Brown bear posted this in #help-forum
Open in Discord
Brown bearOP
Hello, I was wondering what suggestions anyone may have for deploying AI Models that are in use by our Next JS project. I had built the project with the Python code in my Next JS App and used Flask to connect them together locally, but I ran into problems when trying to deploy it. Since the package size is over 50MB I cannot run the Python code as Lambda in my Project due to the size limitations.

I have some experience using AWS EC2 and ECS but if that is the route I am taking I am a bit worried about the most cost efficient option.

Thanks in advance

0 Replies