-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] Serverless Framework Support #37
Comments
Your proposal is interesting, there are a couple of things to consider.
Interested to hear your thoughts. We could create a new repo in https://github.com/instamancer |
True. On the cold boot & browser spin up time Since the Cold Boot only applies to containers that haven't been run in a while USUALLY it doesn't add a huge amount of overhead on it's own since really it's only your first execution. This assumes running the container 50 or 100 times after the first execution (which warms it up). In cases where thousands of lambda / serverless executions occur prior to cool down the overhead for the warm up doesn't end up impacting things in a meaningful way (in my experience!). The bigger issue is the browser spinning up each time — but again to me this is just sort of par for the course to avoid the scraping defenses out there (in this case with instagram) by using Chrome / Puppeteer, but I think it's worth it.
If the reasoning behind moving toward serverless is to be able to abstract the management of consistently run (every day, every hour, etc) Instamancer queries then this separated project could also provide for the use / application of proxies to allow concurrent executions for larger projects. I would like to play around with Instamancer a little more in a containerized environment but I don't see any reason why it would be super hard to configure. Have you done any work on containerization / dockerization locally? |
Is your feature request related to a problem? Please describe.
Many of the API endpoints for instamancer could in theory be ported to a Serverless function that relies on either AWS Lambda (with puppeteer layer) or Google Cloud Functions (that automatically has access to puppeteer by default). This would increase the scalability of the solution and also allow lower level / starter users to take advantage of their free Lambda / function executions on a monthly basis.
Describe the solution you'd like
Add Serverless Framework as a dependency and create a serverless config file to handle configuration when deploying.
Describe alternatives you've considered
Serverless Framework would help to abstract the difference in platforms etc for anyone who wants to run this serverlessly have not considered alternatives.
Additional context
The biggest issue will be data persistence (where to deposit photos / which db to insert records into).
The text was updated successfully, but these errors were encountered: