Sandro Volpicella Profile picture
Platform Engineer Lead @Hashnode I build serverless products and talk about them. AWS Community Builder โœ๏ธ https://t.co/cXDXgFmA5Y ๐Ÿ–ฅ๏ธ https://t.co/NATomeUpPg
Apr 5, 2023 โ€ข 9 tweets โ€ข 5 min read
Wondering what you can do with @serverlessq? Here's a common use case:

Resizing images after uploading them, with the help of @vercel and @supabase.

Read on to find out how we did it: ๐Ÿงต Image Resizing:

๐Ÿ“ท Digital apps rely on images, but large images can slow down apps and frustrate users.

Resizing images optimizes app performance and enhance user experience. If you're a web developer, you know the importance of optimizing image size, especially for SEO.
Apr 4, 2023 โ€ข 9 tweets โ€ข 3 min read
You don't want to wait for your customers to tell you when something is wrong with your system. CloudWatch Alarms can alert you to abnormal behavior before it affects your users.

Here are some important details about CloudWatch Alarms you need to know๐Ÿ‘‡๐Ÿงต 1/ ๐Ÿšจ CloudWatch Alarms notify you when a system or service reaches a pre-defined threshold like errors or usage.

Alarms act on top of pre-defined metric thresholds, like Lambda Errors.
Sep 22, 2022 โ€ข 12 tweets โ€ข 7 min read
๐‡๐จ๐ฐ ๐œ๐š๐ง ๐ฐ๐ž ๐›๐ฎ๐ข๐ฅ๐ ๐„๐ƒ๐€ ๐จ๐ง ๐€๐–๐’?

This thread compares different models of building event-driven systems for @hashnode on AWS

โ€ข A queueing model with SQS
โ€ข Fanout with SNS
โ€ข Event Bus with EventBridge

Let's go๐Ÿงต @hashnode ๐ƒ๐ž๐œ๐จ๐ฎ๐ฉ๐ฅ๐ž ๐ข๐ญ

One of the main benefits still is โžก๏ธ Decoupling Systems

The example shows a tight coupling example. The API needs to know ๐ž๐ฏ๐ž๐ซ๐ฒ๐ญ๐ก๐ข๐ง๐  which can get quite complex if you introduce failure handling & retries.

Let's see our options
Sep 20, 2022 โ€ข 11 tweets โ€ข 3 min read
One of the main building blogs in learning AWS is the service ๐Ÿฅ๐Ÿฅ CloudWatch!

It is the centralised logging service on AWS

Let's have a look at the basic concept CloudWatch Logs is following ๐Ÿงต ๐‚๐ž๐ง๐ญ๐ซ๐š๐ฅ๐ข๐ฌ๐ž๐ ๐‹๐จ๐ ๐ ๐ข๐ง๐  ๐’๐ž๐ซ๐ฏ๐ข๐œ๐ž ๐Ÿ“

Many services are logging directly to CloudWatch

For example
โ€ข API Gateway
โ€ข Lambda
โ€ข ECS
any many more!

Having all logs in 1๏ธโƒฃ place is an immense benefit compared to having the logs separated on different machines
Sep 7, 2022 โ€ข 11 tweets โ€ข 4 min read
๐ƒ๐ฒ๐ง๐š๐ฆ๐จ๐ƒ๐ ๐ข๐ฌ ๐จ๐ง๐ž ๐จ๐Ÿ ๐€๐–๐’'๐ฌ ๐Ÿ๐ฅ๐š๐ ๐ฌ๐ก๐ข๐ฉ ๐ฌ๐ž๐ซ๐ฏ๐ข๐œ๐ž๐ฌ ๐š๐ง๐ ๐š ๐œ๐จ๐ซ๐ž ๐›๐ฎ๐ข๐ฅ๐๐ข๐ง๐  ๐›๐ฅ๐จ๐œ๐ค ๐Ÿ๐จ๐ซ ๐ฆ๐š๐ง๐ฒ ๐’๐ž๐ซ๐ฏ๐ž๐ซ๐ฅ๐ž๐ฌ๐ฌ ๐š๐ฉ๐ฉ๐ฅ๐ข๐œ๐š๐ญ๐ข๐จ๐ง๐ฌ!

Learn about its different main data types ๐Ÿ“š โ†“ ๐Œ๐š๐ข๐ง ๐ƒ๐š๐ญ๐š ๐“๐ฒ๐ฉ๐ž๐ฌ ๐Ÿงฐ

The main data types are:

โ€ข Scalar: Simple types like String, Number, Boolean
โ€ข Document: Complex types like lists and maps
โ€ข Set: Lists of the similar scalar
Sep 5, 2022 โ€ข 15 tweets โ€ข 8 min read
๐‹๐ž๐ญ'๐ฌ ๐›๐ฎ๐ข๐ฅ๐ ๐š๐ง ๐„๐ฏ๐ž๐ง๐ญ-๐ƒ๐ซ๐ข๐ฏ๐ž๐ง ๐š๐ซ๐œ๐ก๐ข๐ญ๐ž๐œ๐ญ๐ฎ๐ซ๐ž @hashnode

Let's have an introduction to
โ€ข EDA
โ€ข How our current architecture looks like
โ€ข Why we want an EDA

A thread ๐Ÿงต Image @hashnode ๐„๐ฑ๐š๐ฆ๐ฉ๐ฅ๐ž ๐„๐ฏ๐ž๐ง๐ญ - ๐๐ฎ๐›๐ฅ๐ข๐ฌ๐ก๐ข๐ง๐  ๐š ๐๐จ๐ฌ๐ญ

After a hashnode user publishes a post several actions are getting started:

โ€ข Audio generation
โ€ข Backup to user's GitHub
โ€ข Newsletter
โ€ข User activity
โ€ข Article Circles
Aug 30, 2022 โ€ข 13 tweets โ€ข 5 min read
๐˜๐จ๐ฎ ๐œ๐š๐ง๐ง๐จ๐ญ ๐ฆ๐š๐ฌ๐ญ๐ž๐ซ ๐€๐–๐’ ๐ฐ๐ข๐ญ๐ก๐จ๐ฎ๐ญ ๐ฎ๐ฌ๐ข๐ง๐  ๐ˆ๐ง๐Ÿ๐ซ๐š๐ฌ๐ญ๐ซ๐ฎ๐œ๐ญ๐ฎ๐ซ๐ž ๐š๐ฌ ๐‚๐จ๐๐ž ๐Ÿ’ฅ

Let's look at what infrastructure as code is and some history of how it all began ๐Ÿ“œ๐Ÿงต ๐€๐ฉ๐ฉ๐ฅ๐ข๐œ๐š๐ญ๐ข๐จ๐ง ๐ฏ๐ฌ ๐ˆ๐ง๐Ÿ๐ซ๐š๐ฌ๐ญ๐ซ๐ฎ๐œ๐ญ๐ฎ๐ซ๐ž ๐‚๐จ๐๐ž

Your infrastructure is your application code

In earlier times you probably had architectures like that:

โ€ข Application -> Java Server
โ€ข Infrastructure -> ECS
Aug 9, 2022 โ€ข 9 tweets โ€ข 4 min read
๐ƒ๐จ ๐ฒ๐จ๐ฎ ๐ฐ๐š๐ง๐ญ ๐ฌ๐จ๐ฆ๐ž ๐ฆ๐จ๐ซ๐ž ๐ก๐š๐ง๐๐ฌ-๐จ๐ง ๐ž๐ฑ๐ฉ๐ž๐ซ๐ข๐ž๐ง๐œ๐ž ๐จ๐ง ๐€๐–๐’?

AWS offers amazing workshops for free!

Let's take a look at some interesting ones ๐Ÿงต 1๏ธโƒฃ ๐’๐ž๐ซ๐ฏ๐ž๐ซ๐ฅ๐ž๐ฌ๐ฌ - ๐†๐ž๐ญ๐ญ๐ข๐ง๐  ๐’๐ญ๐š๐ซ๐ญ๐ž๐

Build a simple serverless web application.

Services used:
โ€ข Amplify Hosting
โ€ข API Gateway
โ€ข Lambda
โ€ข S3
โ€ข Rekognition
โ€ข DynamoDB

catalog.us-east-1.prod.workshops.aws/workshops/841cโ€ฆ
May 30, 2022 โ€ข 21 tweets โ€ข 7 min read
Almost every cloud application uses AWS SNS, SQS, or a combination of both.

Let's see what these services are, how they are different from each other, and what some good use cases are.

Let's go ๐Ÿš€ ๐Ÿงต
1/21 ๐—”๐—บ๐—ฎ๐˜‡๐—ผ๐—ป ๐—ฆ๐—ก๐—ฆ

SNS is the pub/sub-service of AWS. It allows sending messages to topics.

Consumers can subscribe to topics and decide if they want to receive messages or not.

The messages get fanned out to many subscribers at the same time.

2/21
Mar 24, 2022 โ€ข 10 tweets โ€ข 4 min read
๐—•๐˜‚๐—ถ๐—น๐—ฑ ๐˜†๐—ผ๐˜‚๐—ฟ ๐—ถ๐—ป๐—ณ๐—ฟ๐—ฎ๐˜€๐˜๐—ฟ๐˜‚๐—ฐ๐˜๐˜‚๐—ฟ๐—ฒ ๐—ถ๐—ป ๐—ง๐˜†๐—ฝ๐—ฒ๐—ฆ๐—ฐ๐—ฟ๐—ถ๐—ฝ๐˜ ๐˜„๐—ถ๐˜๐—ต ๐—–๐——๐—ž ๐Ÿ‘จ๐Ÿฝโ€๐Ÿ’ป

CDK is an awesome tool for building your cloud apps.

It is often hard to understand, so let's go through some basics:
๐Ÿ”ธ Benefits
๐Ÿ”ธ History
๐Ÿ”ธ Basics
๐Ÿ”ธ Version 2 News

Let's go ๐Ÿงต ๐Ÿ‘๐Ÿฝ ๐—•๐—ฒ๐—ป๐—ฒ๐—ณ๐—ถ๐˜๐˜€

The main value of CDK is to use a proper programing language instead of configuration (YAML or JSON) files.

You have several benefits with that:
๐Ÿ”ธ Programming constructs (if, while, etc.)
๐Ÿ”ธ Familiar IDE (Vs Code ftw)
๐Ÿ”ธ Reuse code ability
2/10
Feb 14, 2022 โ€ข 9 tweets โ€ข 4 min read
๐—ช๐—ต๐—ฎ๐˜ ๐—ฎ๐—ฟ๐—ฒ ๐—Ÿ๐—ฎ๐—บ๐—ฏ๐—ฑ๐—ฎ ๐—Ÿ๐—ฎ๐˜†๐—ฒ๐—ฟ๐˜€?

๐Ÿ”ธ Do you want to ๐˜€๐—ต๐—ฎ๐—ฟ๐—ฒ ๐—ฑ๐—ฒ๐—ฝ๐—ฒ๐—ป๐—ฑ๐—ฒ๐—ป๐—ฐ๐—ถ๐—ฒ๐˜€ between lambdas?
๐Ÿ”ธ Is your lambda file size getting ๐˜„๐—ฎ๐˜† ๐˜๐—ผ๐—ผ ๐—ฏ๐—ถ๐—ด?

Lambda layers to the rescue ๐Ÿฆธ๐Ÿฝโ€โ™‚๏ธ

Let's take a look at what lambda layers are & how to create them ๐Ÿงต ๐Ÿ‘‡ ๐—ช๐—ต๐—ฎ๐˜ ๐—ฝ๐—ฟ๐—ผ๐—ฏ๐—น๐—ฒ๐—บ๐˜€ ๐—ฑ๐—ผ ๐˜„๐—ฒ ๐—ต๐—ฎ๐˜ƒ๐—ฒ?
1๏ธโƒฃ ๐—ฆ๐—ต๐—ฎ๐—ฟ๐—ถ๐—ป๐—ด ๐—ฑ๐—ฒ๐—ฝ๐—ฒ๐—ป๐—ฑ๐—ฒ๐—ป๐—ฐ๐—ถ๐—ฒ๐˜€

๐Ÿ”ธ You often have the same libraries in different lambda functions (e.g. ๐˜ข๐˜น๐˜ช๐˜ฐ๐˜ด or ๐˜ญ๐˜ฐ๐˜ฅ๐˜ข๐˜ด๐˜ฉ)
๐Ÿ”ธ Updating these can be quite challenging

2/9
Oct 25, 2021 โ€ข 17 tweets โ€ข 3 min read
Are you interested in things you can build with @AWSAmplify?

Let's have a look at all categories and the involved AWS services.

A thread.
{1/16} All available Amplify Categories Authentication.

Service: Cognito
Authentication handles everything from Sign-Up to Sign-In. All related workflows are built-in. Using social sign-in providers like Apple & Google is also possible!

{2/16}