Ravindra BagaleCourses & study guides मराठी

Ravi Sir's Cards › DevOps

DevOps

Chapter 58: Docker Projects Part 2: AWS RDS, DynamoDB, S3, Reel Upload, Microservices, Queues, Logging, Monitoring and Cloud Deploys: Cards

मराठी cards · Open the chapter

Revision cards

Project 17: every language with AWS RDS MySQL. A database on your own container needs backups and patching by you.
Revision card 1 of 15: Project 17: every language with AWS RDS MySQL · Download PNG · Open card page

Lesson: 58.1 Project 17: Every language in a container with AWS RDS MySQL (Node, Python, Go, Java, .NET, PHP)

Project 18: every language with DynamoDB. Testing against real AWS from every laptop costs money and needs keys.
Revision card 2 of 15: Project 18: every language with DynamoDB · Download PNG · Open card page

Lesson: 58.2 Project 18: Every language in a container with DynamoDB (DynamoDB Local and LocalStack first, then real DynamoDB with an IAM role)

Project 19: image upload with S3 and RDS. Sending big files through the API server is slow and costly.
Revision card 3 of 15: Project 19: image upload with S3 and RDS · Download PNG · Open card page

Lesson: 58.3 Project 19: Containers with S3 and RDS (image-upload API with presigned URLs, MinIO locally, real S3 and RDS on AWS)

Project 20: reel-upload app with an ffmpeg worker. Converting a video inside the web request makes users wait minutes.
Revision card 4 of 15: Project 20: reel-upload app with an ffmpeg worker · Download PNG · Open card page

Lesson: 58.4 Project 20: Reel-upload app (upload to S3, Redis queue, ffmpeg worker container, thumbnails and a feed)

Project 21: microservices shop behind an nginx gateway. One big app means one bug or one deploy can stop everything.
Revision card 5 of 15: Project 21: microservices shop behind an nginx gateway · Download PNG · Open card page

Lesson: 58.5 Project 21: Microservices shop (nginx gateway, users in Node, orders in Python, payments in Go, Postgres and MongoDB)

Project 22: Node.js, MongoDB, Redis sessions and nginx load balancing. With many copies, a user logged in on copy 1 is logged out on copy 2.
Revision card 6 of 15: Project 22: Node.js, MongoDB, Redis sessions and nginx load balancing · Download PNG · Open card page

Lesson: 58.6 Project 22: Node.js + MongoDB + Redis sessions + nginx load balancing, deployed to a VM

Project 23: Traefik multi-site host with automatic HTTPS. Editing nginx and certificates for every new site is slow.
Revision card 7 of 15: Project 23: Traefik multi-site host with automatic HTTPS · Download PNG · Open card page

Lesson: 58.7 Project 23: Traefik multi-site host with automatic HTTPS (many apps on one EC2)

Project 24: worker queue with Celery, Redis and RabbitMQ. Doing invoice, email and report inside the order request makes users wait.
Revision card 8 of 15: Project 24: worker queue with Celery, Redis and RabbitMQ · Download PNG · Open card page

Lesson: 58.8 Project 24: Worker queue with Celery and Redis, then RabbitMQ, with the Flower UI

Project 25: Kafka event pipeline. Many teams need the same events, but a job queue gives each message to only one worker.
Revision card 9 of 15: Project 25: Kafka event pipeline · Download PNG · Open card page

Lesson: 58.9 Project 25: Kafka event pipeline (Redpanda or Apache Kafka, a producer, consumers and a UI)

Project 26: EFK and ELK logging for the shop. Opening docker logs on five containers one by one is slow, and old logs vanish.
Revision card 10 of 15: Project 26: EFK and ELK logging for the shop · Download PNG · Open card page

Lesson: 58.10 Project 26: ELK and EFK logging for the microservices shop (Elasticsearch, Fluent Bit or Logstash, Kibana)

Project 27: Prometheus, Grafana and cAdvisor. Logs show single events; trends over time need numbers.
Revision card 11 of 15: Project 27: Prometheus, Grafana and cAdvisor · Download PNG · Open card page

Lesson: 58.11 Project 27: Prometheus, Grafana and cAdvisor monitoring for the microservices shop

Project 28: deploy to EC2 with docker context over SSH. SSH, git pull and build on the server is slow and needs build tools there.
Revision card 12 of 15: Project 28: deploy to EC2 with docker context over SSH · Download PNG · Open card page

Lesson: 58.12 Project 28: Deploy to EC2 from your laptop with docker context over SSH

Project 29: ECR and ECS Fargate 3-tier app with RDS and S3. One server dies, the shop is down; one server is not enough at sale time.
Revision card 13 of 15: Project 29: ECR and ECS Fargate 3-tier app with RDS and S3 · Download PNG · Open card page

Lesson: 58.13 Project 29: Push to ECR and run a 3-tier app on ECS Fargate with RDS and S3

Project 30: microservices shop as a Docker Swarm stack. One Compose server is a single point of failure.
Revision card 14 of 15: Project 30: microservices shop as a Docker Swarm stack · Download PNG · Open card page

Lesson: 58.14 Project 30: Deploy the microservices shop as a Docker Swarm stack with secrets and configs

Project 31: capstone Instagram-style app end to end. Real products need every step from git push to monitoring, not only code.
Revision card 15 of 15: Project 31: capstone Instagram-style app end to end · Download PNG · Open card page

Lesson: 58.15 Project 31: Capstone - an Instagram-style app end to end (build, scan, push, deploy, monitor)

Interview cards

How does a container connect to RDS safely? Pass the RDS endpoint as an env var, read the password from Secrets Manager, use TLS, and allow port 3306 only from the app's security group (a firewall rule set).
Interview card 1 of 15: How does a container connect to RDS safely? · Download PNG · Open card page

Lesson: 58.1 Project 17: Every language in a container with AWS RDS MySQL (Node, Python, Go, Java, .NET, PHP)

How do you test DynamoDB code without AWS? Run DynamoDB Local or LocalStack as a container and point the SDK at it with an endpoint URL. In production drop the endpoint and use an IAM role instead of keys.
Interview card 2 of 15: How do you test DynamoDB code without AWS? · Download PNG · Open card page

Lesson: 58.2 Project 18: Every language in a container with DynamoDB (DynamoDB Local and LocalStack first, then real DynamoDB with an IAM role)

What is a presigned URL and why use it? A presigned URL is a link signed by the server that allows one upload or download for a few minutes. The file goes browser to S3 directly, so the API stays light.
Interview card 3 of 15: What is a presigned URL and why use it? · Download PNG · Open card page

Lesson: 58.3 Project 19: Containers with S3 and RDS (image-upload API with presigned URLs, MinIO locally, real S3 and RDS on AWS)

Why use a queue and workers for video processing? Video work is slow. The API adds a job to a queue and returns fast; workers take jobs one by one. Add more workers with --scale when the queue length grows.
Interview card 4 of 15: Why use a queue and workers for video processing? · Download PNG · Open card page

Lesson: 58.4 Project 20: Reel-upload app (upload to S3, Redis queue, ffmpeg worker container, thumbnails and a feed)

What does an API gateway do? It is the single entry point: routes /users, /orders, /pay to the right service, and is the one place for HTTPS, auth and rate limits. Services stay private.
Interview card 5 of 15: What does an API gateway do? · Download PNG · Open card page

Lesson: 58.5 Project 21: Microservices shop (nginx gateway, users in Node, orders in Python, payments in Go, Postgres and MongoDB)

Why store sessions in Redis when you scale out? Memory sessions live in one copy only. With Redis as a shared session store, every copy reads the same login, so you do not need sticky sessions.
Interview card 6 of 15: Why store sessions in Redis when you scale out? · Download PNG · Open card page

Lesson: 58.6 Project 22: Node.js + MongoDB + Redis sessions + nginx load balancing, deployed to a VM

How does Traefik know where to send traffic? It watches the Docker API and reads labels on each container, like a router rule Host(`shop.example.com`). New container, new route, no reload.
Interview card 7 of 15: How does Traefik know where to send traffic? · Download PNG · Open card page

Lesson: 58.7 Project 23: Traefik multi-site host with automatic HTTPS (many apps on one EC2)

How do you make background tasks safe if a worker dies? Use acks_late: the worker confirms only after the task finishes, so a crash puts it back in the queue. Add retry with a delay for failing calls.
Interview card 8 of 15: How do you make background tasks safe if a worker dies? · Download PNG · Open card page

Lesson: 58.8 Project 24: Worker queue with Celery and Redis, then RabbitMQ, with the Flower UI

Kafka vs a job queue? A queue gives each message to one worker and deletes it. Kafka keeps events for a retention time; every consumer group reads them at its own offset.
Interview card 9 of 15: Kafka vs a job queue? · Download PNG · Open card page

Lesson: 58.9 Project 25: Kafka event pipeline (Redpanda or Apache Kafka, a producer, consumers and a UI)

How do you collect logs from all containers? Set the logging driver to fluentd so Docker sends each container's stdout to Fluent Bit on 24224. It adds the container name and stores the lines in Elasticsearch.
Interview card 10 of 15: How do you collect logs from all containers? · Download PNG · Open card page

Lesson: 58.10 Project 26: ELK and EFK logging for the microservices shop (Elasticsearch, Fluent Bit or Logstash, Kibana)

How do you monitor container memory? Run cAdvisor, let Prometheus scrape it, and query container_memory_working_set_bytes in PromQL. Alert when it stays near the limit for 5 minutes.
Interview card 11 of 15: How do you monitor container memory? · Download PNG · Open card page

Lesson: 58.11 Project 27: Prometheus, Grafana and cAdvisor monitoring for the microservices shop

How do you deploy to a server with docker context? Create a context with host=ssh://user@server, then run compose with --context prod. Commands run on the server's engine over SSH; no code or tools on the server.
Interview card 12 of 15: How do you deploy to a server with docker context? · Download PNG · Open card page

Lesson: 58.12 Project 28: Deploy to EC2 from your laptop with docker context over SSH

Task role vs execution role in ECS? The execution role is for ECS itself: pull from ECR, read secrets, write logs. The task role is for your app's AWS calls, like writing to S3.
Interview card 13 of 15: Task role vs execution role in ECS? · Download PNG · Open card page

Lesson: 58.13 Project 29: Push to ECR and run a 3-tier app on ECS Fargate with RDS and S3

How do secrets work in Docker Swarm? Create with docker secret create. Managers store it encrypted, and only services that list it get it as a file at /run/secrets/NAME, in memory, never in the image.
Interview card 14 of 15: How do secrets work in Docker Swarm? · Download PNG · Open card page

Lesson: 58.14 Project 30: Deploy the microservices shop as a Docker Swarm stack with secrets and configs

Walk me through your end-to-end container pipeline. On push: build multi-stage images, test, scan with Trivy, make an SBOM, push with the commit tag, deploy to staging, wait for approval, deploy prod, watch metrics and logs.
Interview card 15 of 15: Walk me through your end-to-end container pipeline. · Download PNG · Open card page

Lesson: 58.15 Project 31: Capstone - an Instagram-style app end to end (build, scan, push, deploy, monitor)

Comparison cards

Job queue vs Kafka event stream. Job queue (Celery, Redis, RabbitMQ): each job goes to one worker.Kafka: events are kept and read by many groups.
Comparison card 1 of 3: Job queue vs Kafka event stream · Download PNG · Open card page

Lesson: 58.8 Project 24: Worker queue with Celery and Redis, then RabbitMQ, with the Flower UI

ECS Fargate vs Docker Swarm. Fargate: AWS runs the servers.Swarm: you run the cluster on your own servers.
Comparison card 2 of 3: ECS Fargate vs Docker Swarm · Download PNG · Open card page

Lesson: 58.13 Project 29: Push to ECR and run a 3-tier app on ECS Fargate with RDS and S3

Logs (EFK) vs Metrics (Prometheus). Logs: text lines about each event.Metrics: numbers measured over time.
Comparison card 3 of 3: Logs (EFK) vs Metrics (Prometheus) · Download PNG · Open card page

Lesson: 58.10 Project 26: ELK and EFK logging for the microservices shop (Elasticsearch, Fluent Bit or Logstash, Kibana)