What’s the best approach for deploying Django, Postgres, and Redis on AWS?

0
15
Asked By CharmingOtter42 On

I'm setting up a modern SaaS-style Django application for production and I'm trying to figure out the best deployment strategy. Should I containerize the entire stack (Django app, Postgres database, and Redis cache) using Docker on an AWS server, or is it more efficient to only containerize the app while leveraging managed services like Amazon RDS for the database and ElastiCache for Redis?

5 Answers

Answered By WittyPenguin99 On

Using Lambda with managed Redis and RDS is a solid option for deploying Django apps, reducing the hassle of server management.

Answered By PonderingPixie24 On

This issue leans more towards software architecture than Docker specifics. The 'best' approach varies by your needs—managed services generally mean less management effort, while running everything in containers might save costs. If compliance is a concern, managed services probably make more sense for you.

Answered By CuriousCheetah14 On

Consider your team's expertise and the expected load before deciding. If you're leaning toward ECS, Fargate can simplify things by managing the infrastructure for you, though you'd need to learn task placement for scaling more on EC2. For the database, you could use Postgres on EC2 with EBS or opt for Aurora for a serverless option which handles scaling automatically.

Answered By EasyGoingLlama51 On

Using ECS with Fargate for your app can really cut down on management overhead. Pairing it with RDS and ElastiCache would balance usability and performance, especially if your team is still getting familiar with AWS.

Answered By SassySeagull87 On

I strongly recommend against containerizing your database. Always go with a managed service to ensure reliability. If you're looking for good starting points, check out django-cookiecutter.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.