Spoke about AWS

52 People have highlighted this activity

Activity Feed

Senior architect, fourTheorem
May 13, 2022
Middy, the Node.js middleware engine for AWS Lambda has finally released V3:

https://github.com/middyjs/middy/releases/tag/3.0.0

Some of the news for this big release:

  • New WebSocket middlewares
  • HTTP & WebSocket Routers!
  • Better error handling
  • Timeout error handling
  • Errors now use { cause } for better context

A new website is also coming soon! 🤞
Read more
Senior architect, fourTheorem
May 13, 2022
Published a new episode of AWS Bites Podcast


36. What’s new for JavaScript developers on AWS?

https://www.youtube.com/watch?v=KXBPMvPhHCo

There are lots of options for programming languages on AWS these days but one of the most popular ones remains JavaScript. In this episode of AWS Bites we discuss what it’s like to develop with JavaScript, Node.js and TypeScript on AWS and what’s new in this field.
We explore why you would choose JavaScript and what are the trade-offs that come with this choice. We present some of the main features of the all-new AWS SDK v3 for JavaScript. We discuss runtime support and tooling for AWS Lambda and finally some interesting developments in the JavaScript ecosystem for the cloud and AWS.

00:00 Intro
00:30 Our commitment to the JavaScript & Node.js ecosystem
01:30 Why we should consider JavaScript on AWS
02:25 The new AWS SDK for JavaScript (v3)
03:00 The command pattern
04:10 Idiomatic Javascript and Node.js with the AWS SDK: Streams
05:55 Idiomatic Javascript and Node.js with the AWS SDK: Async Iterators
07:10 Built in support for Mocking in the AWS SDK
08:00 Middleware support for request/response enrichment in the AWS SDK
09:30 Using JavaScript with Serverless and Lambda
10:10 ESM Modules in Lambda with Node.js 14
11:50 The Middy framework
14:32 The Lambda Power tools library for TypeScript
15:30 JavaScript or TypeScript?
17:40 The pros and cons of bundling Lambda code
18:46 The Serverless Framework
19:50 CDK (Cloud Development Kit)
20:34 ZX: scripting language built on top of JavaScript and Node.js (by Google)
23:13 Wrap up

In this episode, we mentioned the following resources:
- Our previous episode on What language to use for lambda: https://www.youtube.com/watch?v=S0tpR...
- AI as a Service by Eoin Shanaghy and Peter Elger (book): https://www.manning.com/books/ai-as-a...
- Node.js Design Patterns by Mario Casciaro and Luciano Mammino (book): https://www.nodejsdesignpatterns.com/
- AWS SDK for JavaScript v3 high level concepts (including command based model): https://docs.aws.amazon.com/AWSJavaSc...
- AWS SDK for JavaScript v3 paginators using Async Iterators: https://docs.aws.amazon.com/AWSJavaSc...
- Mocking support for the AWS SDK for JavaScript v3: https://aws.amazon.com/blogs/develope...
- Various interesting benchmarks on different Lambda runtimes: https://github.com/theam/aws-lambda-b... - https://filia-aleks.medium.com/benchm... - https://www.simform.com/blog/aws-lamb...
- Support for ESM modules in AWS Lambda (Node.js 14): https://aws.amazon.com/about-aws/what...
- The Middy Framework (middleware pattern for AWS Lambda): https://middy.js.org/
- Lambda Power Tools library for TypeScript: https://awslabs.github.io/aws-lambda-...
- Yan Cui’s article on performance improvements with bundling: https://lumigo.io/blog/3-major-ways-t...
- ZX project (scripting with JavaScript) by Google: https://github.com/google/zx

You can listen to AWS Bites wherever you get your podcasts:
- Apple Podcasts: https://podcasts.apple.com/us/podcast...
- Spotify: https://open.spotify.com/show/3Lh7Pzq...
- Google: https://podcasts.google.com/feed/aHR0...
- Breaker: https://www.breaker.audio/aws-bites
- RSS: ​​https://anchor.fm/s/6a3312a0/podcast/rss

Do you have any AWS questions you would like us to address?
Leave a comment here or connect with us on Twitter:
- https://twitter.com/eoins
- https://twitter.com/loige

#aws #javascript #nodejs
Read more
Senior architect, fourTheorem
May 06, 2022
Published a new Episode of AWS Bites Podcast

35. How can you become a Logs Ninja with CloudWatch?


https://www.youtube.com/watch?v=z23_9c--QGQ

In the age of distributed systems we produce tons and tons of logs. This is especially true for AWS when using CloudWatch logs. So how do we make sense of all these logs and how can we find useful information in them?
In this episode we talk all about logs on AWS and we discuss the main concepts in CloudWatch for logs like Log Groups and Log Streams. We discuss how you can consume logs and how this used to be a big pain point with AWS CloudWatch logs and how now things are a lot better thanks to a relatively new feature called Log Insights.
Finally we discuss some best practices that you should consider when thinking about logs for your distributed cloud applications.

⏱ Chapters:

00:00 Intro
01:42 CloudWatch Log Groups and Log Streams
03:35 How do you read logs?
05:25 Metrics filter
07:28 How to use logs in different use cases?
09:00 CloudWatch Logs Insights
12:00 Example use cases of using the parse expression with CloudWatch Logs Insights
14:30 Saving CloudWatch Logs Insights queries and logs export
17:43 Limitations of the CloudWatch Logs interface
18:40 How searching though logs actually works (compared to metrics) and how to save money
21:00 CloudWatch logs pricing
22:40 Tips and best practices to store logs
30:45 Closing

In this episode, we mentioned the following resources:
- Our previous episode on CloudWatch alarms: https://www.youtube.com/watch?v=rk4QM...
- Analyzing log data with CloudWatch Logs Insights: https://docs.aws.amazon.com/AmazonClo...
- CloudWatch logs insights query syntax: https://docs.aws.amazon.com/AmazonClo...
- Pino logger for Node.js: https://getpino.io

You can listen to AWS Bites wherever you get your podcasts:
- Apple Podcasts: https://podcasts.apple.com/us/podcast...
- Spotify: https://open.spotify.com/show/3Lh7Pzq...
- Google: https://podcasts.google.com/feed/aHR0...
- Breaker: https://www.breaker.audio/aws-bites
- RSS: ​​https://anchor.fm/s/6a3312a0/podcast/rss

Do you have any AWS questions you would like us to address?
Leave a comment here or connect with us on Twitter:
- https://twitter.com/eoins
- https://twitter.com/loige

#aws #logs #cloudwatch
Read more
Senior architect, fourTheorem
Apr 29, 2022
Published a new episode of AWS Bites podcast!

This time we talk about CloudWatch alarms! 🚨


34. How to get the most out of CloudWatch Alarms?

https://www.youtube.com/watch?v=rk4QMJf6R4U

CloudWatch is a great service for metrics. You get tons of metrics out of the box and you can also create your custom ones. One of the most important things you can do with metrics is to create alarms, so how do we get the most out of CloudWatch alarms?
In this episode we share our insights and cover the different types of alarms that exist, how to create an alarm, what to do when an alarm is triggered, a few examples of useful alarms and some of the drawbacks of CloudWatch alarms and how to overcome them.

⏱ Timing:

00:00 Intro
00:50 Different types of Alarms (standard and composite)
01:40 How to create an alarm
03:39 Some examples and use cases for CloudWatch Alarms
05:00 States of an alarm
06:45 How to get notified (Email, custom integrations with Lambda, chat bots)
09:34 What to do once an alarm fires?
12:04 Example use cases for composite alarms
14:27 Cross accounts alarms
15:43 Other use cases and examples for alarms (Alarms based on business metrics, Reactive vs Proactive alarms, Anomaly based alarms, Asynchronous computation)
22:00 Drawbacks of CloudWatch alarms
23:25 SLIC Watch for automatically provisioning alarms with Serverless framework projects
24:30 CloudWatch alarms costs
25:45 Outro

In this episode, we mentioned the following resources:
- Our previous episode on CloudWatch metrics: https://www.youtube.com/watch?v=vwo2j...
- SLIC Watch, a serverless framework plugin that generates sensible alarms and dashboard automatically: https://fth.link/slic-watch

You can listen to AWS Bites wherever you get your podcasts:
- Apple Podcasts: https://podcasts.apple.com/us/podcast...
- Spotify: https://open.spotify.com/show/3Lh7Pzq...
- Google: https://podcasts.google.com/feed/aHR0...
- Breaker: https://www.breaker.audio/aws-bites
- RSS: ​​https://anchor.fm/s/6a3312a0/podcast/rss

Do you have any AWS questions you would like us to address?
Leave a comment here or connect with us on Twitter:
- https://twitter.com/eoins
- https://twitter.com/loige

#aws #alarms #cloudwatch
Read more
Senior architect, fourTheorem
Apr 17, 2022
Published a new article in the fourTheorem blog:


What do you need to know about SNS?

https://www.fourtheorem.com/blog/what-do-you-need-to-know-about-sns

This article explores the main features of Simple Notification Service (SNS) and comparison with EventBridge for sending messages on AWS.

#AWS #SNS #events
Read more
Senior architect, fourTheorem
Apr 26, 2022
Published a new article on my blog:


AWS Solution Architect Professional exam, my notes and tips

https://loige.co/aws-solution-architect-professional-exam-notes-tips


Hello everyone, I am really happy to share with you that I recently got my AWS Solution Architect Professional certification (SAP-C01) 🎉
In this article I talk about my experience with the exam, how I prepared for it and share a few tips that can, hopefully, help you if you are preparing for the exam.
Read more
Loading...