I wrote up an introduction to a POC project I have been working on that combines a few different technologies:
* Django, Celery, Channels, Postgres, Redis
* Vue.js, Quasar Framework (PWA)
* AWS: CloudFront, S3, ALB, Fargate, Lambda, Aurora Postgres Serverless, Cloud Development Kit (CDK) for Infrastructure as Code and application deployment (using Python!)
* GitLab CI
Here's the write up: [https://verbose-equals-true.gitlab.io/django-postgres-vue-gitlab-ecs/start/overview/](https://verbose-equals-true.gitlab.io/django-postgres-vue-gitlab-ecs/start/overview/)
Here's the GitLab repo: [https://gitlab.com/verbose-equals-true/django-postgres-vue-gitlab-ecs](https://gitlab.com/verbose-equals-true/django-postgres-vue-gitlab-ecs)
This writeup also includes my solution to issue that I was trying to solve a few weeks ago about \*\*how to scale celery workers to zero\*\*. I got a lot of help from this thread that I cross posted on r/django and r/aws: [https://www.reddit.com/r/django/comments/gp81dx/questions\_about\_scaling\_celery\_workers\_to\_zero/](https://www.reddit.com/r/django/comments/gp81dx/questions_about_scaling_celery_workers_to_zero/). I ended up using a Lambda function with a custom CloudWatch metric. I would be curious to know if anyone has feedback on this or any other part of my project. Thanks!
5 thoughts on “Building Django + Vue.js applications with AWS CDK and GitLab CI and how to scale celery workers to zero”
Very well written, excellent project. There’s so much wonderful stuff here… it’s really fun to dig into. Thanks!
Do u have any tuto how to work with celery redis with django??
Incredible post man!
Hey that’s a very nice article ! I’m amused to see that we have almost the same stack except for some AWS services, but it’s an incredibly powerful stack to work with !
Great post! Do you have some information on the pricing compared to using a simpler digitalocean setup? Aws costs seem like a blackbox to me.