Welcome back to Sean’s Syntax!
This week, I’ve been working on setting up an AWS Elastic Beanstalk environment for my groups trading algorithm project. While we haven’t deployed anything just yet, the foundation is ready. I’m excited to share what went into preparing this cloud.
Why Elastic Beanstalk?
AWS Elastic Beanstalk provides simplicity and scalability. It’s designed with great tools for hosting our Python-based trading algorithm application since it automates server administration, scaling, and load balancing. This lets us focus on building and optimizing algorithms and leaving the infrastructure to Elastic Beanstalk.
Getting Started
Here’s what I’ve done so far to get the environment ready:
- Platform Setup
I selected Python as the platform for Elastic Beanstalk. It’s compatible with the tools I’m using like backtesting.py for the trading strategies. Elastic Beanstalk automatically provisions resources like EC2 instances, so all I had to do was pick the right options. - Environment Configuration
I set up the basics:- Created environment variables so we can plug in API keys and database credentials.
- Set up Elastic Beanstalks real-time monitoring of performance.
- Preparing the Application
Even though my group hasn’t deployed yet, Here is what the full structure of the application will look like. The app includes:- Application files for the trading dashboard.
- A requirements.txt file listing all the Python libraries the app needs.
- Config files for connecting to AWS services like RDS (database) and S3 (storage).
Next Steps
Now that the cloud environment is ready our next task is to deploy the app and start testing it in the cloud. Elastic Beanstalk will help with this and once the app is live, I’ll tweak the setup based on performance and scalability needs.