classnotes RTX 4070 Ti SUPER · faster-whisper · DeepSeek

5102 - Foundations of Comp Sys

← 5102 - Foundations of Comp Sys

FCS_26 Sep

Date 2026-09-26 Length 2h 03m Words 14,521 Segments 1,841
⤓ Download transcript (.txt with timestamps) ⤓ Plain transcript (.txt) ⤓ Transcript (.md)

Summary


session: "5102-foundations-of-comp-sys/2026-09-26 0000 FCS 26 Sep"

title: "FCS 26 Sep"

date: "2026-09-26 00:00"

duration: "2h 03m"

language: "en"

model: "deepseek-ai/DeepSeek-V3.2"

parts: 3

transcript_chars: 75992

generated: "2026-11-23T15:31:35+05:30"


FCS 26 Sep

Overview

This class was a practical deployment session focused on deploying a three-tier, containerized web application (AWS Order Fulfillment) to AWS using Elastic Container Service (ECS). It covered the end-to-end process from examining the application code and infrastructure-as-code scripts to executing an automated deployment, verifying resources in the AWS console, and testing the live application. The session concluded with log analysis using AWS CloudWatch to trace requests and a discussion on container portability and cloud-agnostic deployment. This practical demonstration connects the course's software concepts (processes, containers) to real-world system deployment and management.

Learning outcomes

Core concepts

Segregation and Aggregation

A thinking tool where you first list items individually (segregation) and then group them based on common characteristics (aggregation). This methodology was applied to understand system components (e.g., separating hardware, software, and network concepts).

Three-Tier Containerized Application

An application architecture with distinct frontend, backend, and database components, each packaged into Docker containers. This modular design enables independent scaling, deployment, and management of each tier.

Automated Cloud Deployment

The process of using scripts (like deploy.sh) to automatically provision and configure cloud resources (compute, networking, storage) and deploy application code, eliminating manual steps and ensuring consistency.

Observability with CloudWatch Logs

Using centralized logging (AWS CloudWatch) to collect, search, and analyze logs from distributed application components. This is critical for debugging, performance monitoring, and tracing requests across microservices.

Cross-Cloud Portability

The principle that containerized applications, by packaging dependencies, can run on any cloud provider's container orchestration service (e.g., AWS ECS, Azure Container Instances) with changes primarily to the deployment scripts and service commands.

Formulas and maths

(Not covered in this session)

Worked examples

1. Directory and File Structure Examination

2. Deployment and Verification Steps

1. Pre-deployment Check: Verified AWS CLI configuration using aws sts get-caller-identity. Used the root user for the demo to bypass IAM permission issues.

2. Execution: Ran deployment script: ./infra/deploy.sh.

3. Verification in AWS Console:

4. Application Test: Submitted an order via the ALB URL. Received HTTP status 201 (success) with a response time of 5 milliseconds.

3. CloudWatch Log Analysis

Questions asked in class

Q: A student pointed out a duplicate option in an assignment question (Question 5).

A: The instructor will check the question and consider scoring based on 9 questions or possibly giving a grace mark to all students.

Q: Student asked about the quality of assignment questions.

A (from student chat): The questions were found to be practical and situation-based, which was a good approach.

Q: Asked about types of load balancers in Azure and the difference between L4 and L8.

A: Briefly acknowledged; the answer was provided in the session.

Q (Suraj): What are the prerequisites for running the demo locally?

A: An AWS account with billing enabled is required. Connection is via AWS CLI configured on the local system with credentials.

Q (Varun Agarwal): About the ARN and root in aws sts get-caller-identity output.

A: The ARN shows the authenticated identity. The root user is the default administrative user for the AWS account. It was used in the demo to avoid IAM permission issues but is not recommended for regular use.

Q (Varun Agarwal): How to manage config.env for multiple environments (dev, test, etc.)?

A: You can create separate environment files for each, or use a single file with sections demarcated by square brackets (e.g., [development], [testing]), and have the script reference the appropriate section.

Q (Varun Agarwal): Where are container images stored during deployment?

A: Images are not stored locally as a repository. The script builds images and pushes them to Amazon ECR (Elastic Container Registry), AWS's managed container registry, from which ECS pulls them.

Q: Can the same Dockerfile/script used in AWS be run successfully in Azure?

A: Yes, 100%. You would need to install the Azure CLI, configure it, and change the deployment shell script commands from AWS to Azure commands. Azure provides analogous services.

Q: Where are the container resources deployed? Can we see them?

A: They are running in an ECS cluster. You can view them in the ECS console under the specific cluster, which shows services (backend, frontend) and running tasks.

Q: Would this work with a Windows web server (e.g., IIS) instead of Nginx?

A: Yes. The container would package the Windows web server executable. Containerization allows the same packaged application to run on AWS, Azure, Windows, or Linux hosts.

Q: What is the difference between ECS and EKS?

A: ECS is AWS's older, proprietary container orchestration service. EKS is AWS's managed Kubernetes service, based on the open-source Kubernetes code. Both run Docker containers, but EKS uses Kubernetes concepts (pods, namespaces).

Q: If deployed on EKS, would containers be visible in the ECS UI?

A: No. ECS and EKS are separate services. Containers run in EKS are managed and viewed only within the EKS service/console.

Q: How is authentication handled between frontend and backend microservices?

A: The frontend is not directly exposed. Only the Application Load Balancer (ALB) is public. The ALB, residing within the same secured network, is the only entity allowed to communicate with the cluster. Requests via the ALB are considered authenticated for internal routing.

Q: In the CloudWatch logs, the backend health check was on 127.0.0.1 (localhost), but other logs had 172.31.* private IPs. Does this mean frontend and backend always run on the same VM?

A: No. The 127.0.0.1 address is for local health checks within a container/VM. The 172.31.* addresses are private IPs used for actual communication. Container placement on VMs is managed by ECS.

Q: What is the difference between MySQL, MSSQL, and DynamoDB?

A: MySQL and Microsoft SQL Server (MSSQL) are relational database management systems (RDBMS). DynamoDB is a NoSQL database service.

Key takeaways

Exam-style questions

1. Describe the steps an automated deployment script (deploy.sh) must perform to deploy a containerized frontend/backend application to AWS ECS.

2. You see a CloudWatch log entry showing a POST request to /api/orders returning status 201 with a duration of 2531. Interpret this log. What would you check next to confirm the request was fully processed?

3. A team wants to migrate the deployed application from AWS ECS to Azure. What changes are required to the deployment process, and what remains the same?

Glossary

Follow-ups

Transcript

One line per segment, [hh:mm:ss] timestamp first.

loading…