grycap / scar

Serverless Container-aware ARchitectures (e.g. Docker in AWS Lambda)
https://scar.readthedocs.io/en/latest/
Apache License 2.0
598 stars 46 forks source link

batch processing from public bucket / subscribing to SNS topic #363

Open adokter opened 4 years ago

adokter commented 4 years ago

I've been using SCAR to batch process data from a public bucket that posts SNS notifications whenever new files are added

Currently SCAR handles S3 events, but not SNS events. I managed to add SNS functionality in an older version of SCAR (e.g. see here and here), but SCAR has evolved much and I'm no longer sure how to apply a patch myself. Therefore this feature request to be able to subscribe to an SNS topic and be able to batch process public buckets.

Thanks for developing SCAR!

srisco commented 4 years ago

Hi @adokter, sorry for the late reply. We're studying the integration with SNS, but at the moment we are too busy and we think that it may be so specific functionality for your use case (the format of the notifications may vary). At the moment I can give you two ideas to implement it:

Hope you can find it useful. If you have any doubt don't hesitate to contact us again, this time I will try to answer you faster.

Greetings.

adokter commented 4 years ago

Thanks very much @srisco for the pointers, I will look into it