SERVERLESS AND APPLICATION SERVICES

Architecture Deep Dive - PART1 (8:52)

Alt text CatTube - Monolithic Architecture

Alt text CatTube - Tiered Architecture

Architecture Deep Dive - PART2 (13:09)

Alt text Evolving with Queues

Alt text Evolving with Queues

Alt text Microservices Architecture

Alt text Event Driven Architecture - Event Producer / Event Consumer

Alt text Event Driven Architecture - Only consumes resources while handling events

AWS Lambda - PART1 (11:25)

Alt text AWS Lambda - Overview

Alt text AWS Lambda - Architecture

what is the maximum execution time of an aws lambda?

900s (15min)

Alt text AWS Lambda - Common Uses

AWS Lambda - PART2 (13:59)

Alt text Public Lambda

Alt text Private Lambda - Old Way

Alt text Private Lambda - New Way

Alt text Lambda - Security

Alt text Lambda - Logging

AWS Lambda - PART3 (17:03)

Alt text Lambda - 3 Types of Invocation

Alt text Lambda - Synchronous Invocation

Alt text Lambda - Asynchronous Invocation

Alt text Lambda - Event Source Mapping

Alt text Lambda - Versions

Alt text Lambda - Execution Context: Cold start ☃️ - Warm start 🌞

CloudWatch Events and EventBridge (6:54)

Alt text EventBridge = CloudWatch Events v2

which type of events do cloudwatch events and eventbridge process?

Events generated by supported AWS services within an account.

how many buses do cloudwatch events and eventbridge have?

  • Both have a default Event bus:

    • CloudWatch Events: 1

      The default is the only bus CloudWatch Events has.

    • EventBridge: 1+

      In additional to the defaut event bus, EventBridge can have other event buses.

Alt text Rule & Target

which types of rules do cloudwatch events and eventbridge support?

  • Event Pattern Rule 👈 If X happens do Z.
  • Schedule Rule👈 At Y time(s) do Z.

[DEMO] Automated EC2 Control using Lambda and Events - PART1 (13:44)

[DEMO] Automated EC2 Control using Lambda and Events - PART2 (18:49)

Serverless Architecture (12:56)

Alt text What is serverless?

Alt text Serverless Architecture Example - PetTube

Simple Notification Service (7:49)

Alt text SNS - Pub-Sub Service

what is the maximum size of sns message?

256KB

Alt text SNS - Architecture

Alt text SNS - Delivery Status/Retries

Step Functions (16:09)

Alt text Lambda’s Problems

Alt text Step Functions - State Machines

what are the main concepts of aws step functions?

  • AWS Step Functions lets we coordinate individual tasks into a visual workflow, so you can build and update apps quickly.

    Alt text

  • The workflows we build with Step Functions are called state machines.

  • Each step of your workflow is called a state.

    Alt text

  • A Task (corresponding to a state) (a “Step Function”) represents a unit of work that another AWS service, such as AWS Lambda, performs.

    Alt text

Alt text Step Functions - States

Alt text Step Functions - Example Architecture

API Gateway 101 (16:27)

Alt text API Gateway - 101

Alt text API Gateway - Overview

Alt text API Gateway - Authentication

Alt text API Gateway - Endpoint Types

Alt text API Gateway - Stages

Alt text API Gateway - Errors

Alt text API Gateway - Caching

[MINI_PROJECT] Build A Serverless App - Pet-Cuddle-o-Tron - PART1 (5:01)

Alt text

[MINI_PROJECT] Build A Serverless App - Pet-Cuddle-o-Tron - PART2 (8:24)

[MINI_PROJECT] Build A Serverless App - Pet-Cuddle-o-Tron - PART3 (12:31)

[MINI_PROJECT] Build A Serverless App - Pet-Cuddle-o-Tron - PART4 (13:31)

[MINI_PROJECT] Build A Serverless App - Pet-Cuddle-o-Tron - PART5 (12:55)

[MINI_PROJECT] Build A Serverless App - Pet-Cuddle-o-Tron - PART6 (2:39)

Simple Queue Service (15:30)

Alt text SQS - Overview

Alt text SQS - Architecture

Alt text SQS & SNS - Architecture

Alt text SQS - Recap

SQS Standard vs FIFO Queues (3:29)

Alt text SQS - Standard vs FIFO Queues

SQS Delay Queues (4:38)

Alt text SQS Visibility Timeout vs SQS Delay Queues

what is [sqs visibility timeout](https://docs.aws.amazon.com/awssimplequeueservice/latest/sqsdeveloperguide/sqs-delay-queues.html)?

  • While a SQS message is processing, it won’t be visible in the SQS queue.
  • After the message are processed,
    • It needs to be explicitly delete from the queue
    • or it will reappear on the queue after the Visibility Timeout.

what is the default value of sqs visibility timeout?

30s.

It can be varied from 0s -> 12h.

what is [sqs delay queues](https://docs.aws.amazon.com/awssimplequeueservice/latest/sqsdeveloperguide/sqs-delay-queues.html)?

For an SQS queue which has DelaySeconds set, after the messages added to the queue, they will be invisible for DelaySeconds.

what is the limit of sqs `delayseconds`?

0s -> 15m

SQS Dead-Letter Queues (DLQ) (4:17)

Alt text SQS Dead-Letter Queues

what is [sqs dlq](https://docs.aws.amazon.com/awssimplequeueservice/latest/sqsdeveloperguide/sqs-dead-letter-queues.html)?

The queue which stores messages that can’t be processed (consumed) successfully.

Kinesis Data Streams (7:52)

Alt text Kinesis - Concept

Alt text Kinesis - Architecture

Alt text SQS vs Kinesis

Kinesis Data Firehose (9:11)

Alt text Kinesis Data Firehose - Overview

Alt text Kinesis Data Firehose - Architecture

can kinesis data firehose offer real-time delivery?

No. Although Kinesis Data Firehose can receive data in realtime (200ms), it only delivery data in NEAR realtime.

The messages are delivered when:

  • buffer is filled (1MB)
  • buffer interval passed (60s)

Kinesis Data Analytics (8:51)

Alt text Kinesis Data Analytics - Overview

Alt text Kinesis Data Analytics - Architecture

Alt text Kinesis Data Analytics - When & Where?

Kinesis Video Streams (5:09)

Alt text Kinesis Video Streams - Overview

Alt text Kinesis Video Streams - Architecture

Amazon Cognito - User and Identity Pools (14:44)

Alt text Cognito - Overview

Alt text Cognito - User Pool (authenticate & authorize users to your app or API)

Alt text Cognito - Identity Pool (authorize authenticated/anonymous users to access your AWS resources)

Alt text Cognito - User Pool & Identity Pool

AWS Glue 101 (6:23)

Alt text AWS Glue - Serverless ETL

Alt text AWS Glue - Data Catalog

Alt text AWS Glue - Architecture

Amazon MQ 101 (8:15)

Alt text Amazon MQ - Why?

Alt text Amazon MQ - What?

Alt text Amazon MQ - How?

Alt text Amazon MQ - When?

Amazon AppFlow (3:30)

Alt text Amazon AppFlow - Overview

Alt text Amazon AppFlow - Architecture

Serverless and App Services Section Quiz