mardi 18 février 2020

Implementing Factory Method instantiation on AWS Lambda

I am building a serverless data extractor on AWS lambda. The current design involves several subclasses of data extractors functioning on different modes (full extraction and incremental for example) which need to be instantiated using a factory class based on a configuration passed into the Lambda function. However the question remains, how suitable it is to have all of this wrapped into a single deployement bundle on a single lambda function.

While I have also considered using state machines to achieve this, I would appreciate if someone could give me a heads up on why or why not the earlier method would not be suitable for the serverless architecture.

Aucun commentaire:

Enregistrer un commentaire