my-notes

Workshop AWS Serverless

Arquitetura de microsserviços

2001 - 2002

2001: Aplicação monolítica + teams 2002: Microsserviços - 2 pizza teams

2pizza teams - fast & agile

Serverless means…

Serverless benefits

Serverless is more than compute

COMPUTE

DATA STORES

INTEGRATION

AWS Lambda

Event Driven -> Function as a Service -> Serverless FaaS (Lambda)

Serverless Applications

Event Source -> Function -> services (anything)

Tipos de eventos:

Function:

Anatomy of a Lambda Function

Handler() function

Function to be executed upon invocation.

Event object

Data sent during lambda function invocation.

Context object

Methods available to interact with runtime information (request ID, log group, more).

Fine-grained pricing

Dá pra testar no Free Tier

Amazon API Gateway

HTTP APIs for Amazon API Gateway

Achieve up to 67%”cos reduction and 50% latency reduction compared to REST APIs. HTTP APIs are also easier to configure than REST APIs, allowing customers to focus more time on building applications.

Amazon DynamoDB

Fast and flexible NoSQL database service for any scale

Performance at scale:

No servers to manage

Enterprise ready

AWS AppSync

Real-time and offline data using GraphQL

Business workflow is rarely sequential start to finish

AWS Step Functions + Lambda

“Serverless” workflow management with zero administration:

Step Functions: Integrations

Simplify building workloads such as order processing, report generation, and data analysis.

Write and maintain less code; add services in minutes.

More service integrations:

AWS Step Functions - Express Workflows

Amazon EventBridge

A serverless event bus service for AWS services, your own applications, and SaaS prociders.

AWS Serverless Application Model (SAM)

AWS Command Line Interface (AWS CLI)

CLI tool for local development, debugging, testing, deploying, and monitoring of serverless applications

Supports API Gateway “proxy-style” and Lambda service API testing

Response object and function logs available…

AWS Serverless Application Repository

Cloud Development Kit (CDK)

IaS usando linguagem de programação

Software development framework for defining cloud infrastructure using familiar programming languages.

Getting Started:

Amplify

Fastest way to develop cloud powered apps

Tres components principais:

The Amplify Framework, an open source client framework, includes libraries, a CLI toolchain, and UI components

The CLI toolchain enables easy integration with Cloud Services such as Amazon Cognito, AWS, AppSync, and Amazon Pinpoint.

Developer Tools for building, testing, deploying, and hosting the entire app - frontend and backend.

Use cases

Monitoring

Metrics, logging and tracing