What AWS Database Options Are Best for My Constant Data Insertion Needs?
Asked by
MINOR_revision
Hey everyone,
I currently run a PostgreSQL database on a dedicated server where I have 6 scripts constantly connected. These scripts scrape data from a video game API and insert around 30 rows, spread across 3 tables, every second!
I'm considering moving to AWS for a cloud-based solution, ideally something with a similar monthly cost to my current setup of about โฌ35/month. Can you recommend an AWS database setup like RDS or Aurora that would be suitable for my needs?
Additionally, I deal with large CTEs that run every minute and can take about a minute to executeโall of this needs to be handled in a cloud environment. Any thoughts on whether AWS can provide a setup that meets my requirements at a reasonable price?
Answers
If youโre focusing on data analysis and donโt need strict consistency, you could save all your data in S3 and analyze it later using Athena or DuckDB, which might be cost-effective.
Reply to this answer
RDS can support multiple database engines, and it sounds like Aurora/PostgreSQL could fit the bill for you. If you're willing to explore NoSQL, DynamoDB could end up being cheaper for your specific case. You can estimate your storage and read/write costs using the AWS pricing calculator linked here: [AWS Pricing Calculator](https://aws.amazon.com/aws-cost-management/aws-pricing-calculator/)
Reply to this answer
AWS has various database options tailored to different needs. Since you're using PostgreSQL, RDS for PostgreSQL would be a solid choice. However, given the high amount of data insertion, you might also want to look into NoSQL options that could handle your workload better.
Reply to this answer
Running a managed DB 24/7 on AWS usually costs more than a dedicated server. Your current challenge seems to be managing insertions and compute costsโconsider how often you need quick access to the data you've inserted versus just storing it for analysis.
Reply to this answer
Aurora could work, but Iโm cautious about the expense. Traditional relational databases arenโt always the best for heavy data insertion workloads. Consider a Lambda + EventBridge architecture for data ingestion, and based on your usage patterns, you could opt for DynamoDB, S3, or EFS depending on what you do with the data afterward.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions