Reputation: 3489
I am currently working on implementing Facebook Prophet for a live production environment. I haven't done that before so I wanted to present you my plan here and hope you can give me some feedback whether that's an okay solution or if you have any suggestions.
Within Django, I create a .csv export of relevant data which I need for my predictions. These .csv exports will be uploaded to an AWS S3 bucket.
From there I can access this S3 bucket with an AWS Lambda Function
where the "heavy" calculations are happening.
Once done, I take the forecasts from 2. and save them again in a forcast.csv
export
Now my Django application can access the forecast.csv
on S3
and get the respective predictions.
I am especially curious if AWS Lambda Function
is the right tool
in that case. Exports could probably also saved in DynamoDB
(?), but I try to keep my v1 simple, therefore .csv. There is still some effort to install the right layers/packages for AWS Lambda. So I want to make sure I am walking in the right direction before diving deep in its documentation.
Upvotes: 1
Views: 246
Reputation: 2288
I am a little concerned about using AWS Lambda for the "heavy" calculations. There are a few reasons.
You can evaluate linking the S3 bucket to an SQS queue and a process running on EC2 machine which is listening to the queue and performing all the calculations.
Upvotes: 2