amazon-web-servicesscrapyaws-lambdasplash-js-render

Can we deploy Splash on Aws Lambda?


I am writing a scraping app which is running on Lambda. I want to combine Scrapy with Splash, but I am not sure that can Splash run on lambda.


Solution

  • It depends on how you are trying to install Splash.

    1. If you want to run it using docker image, then take a look at Elastic container service. Lambda is not ideal for running containerized app.
    2. If you are going to run it by manual way, like mentioned here you can do so. But as per the doc, its not recommended. As AWS Lambda supports Python, this should not be problem, as long as it doesn't require any other dependency. Also consider the starting time for your Splash server. Lambda allocates instances on the fly, So it might take time to start your application (AWS lambda cold start).