How can you reuse code for similar functions on AWS Lambda?

Published: 5/10/2017
How can you reuse code for similar functions on AWS Lambda?
Source: SOFTWAREENGINEERING.STACKEXCHANGE.COM

I have 3 Lambda functions that do very similar things: scrape data from different sections of a website. Each function returns a collection of objects that have similar properties. The method of fetching of the pages is all the same throughout all 3 functions, only difference is the HTML elements that are being scraped. So total, there are around 150 lines of code that are different because of the

Read more
Related news
Comment
FACEBOOK