Weekly update 39
Tags: weeklyupdate, aws, serverless
Published: 2020-01-20 00:58:35

---
title: Weekly update 39
published: true
date: 2020-01-19 11:16:03 UTC
tags: Weekly Update, aws, serverless
canonical_url: https://theburningmonk.com/2020/01/weekly-update-39/
---

Hi, welcome to another weekly update. I have a couple of exciting announcements for you this week :-)

### Learn you some Lambda best practice for great good!

First up, I want to tell you about my new video course, which is focused on what best practices you should follow when working with AWS Lambda. It covers areas of performance, security, scalability, resilience, observability and cost. I will discuss topics such as:

- how to improve cold start performance
- what is the new Provisioned Concurrency feature and when to use it?
- fan-out patterns and load testing tools
- secret managements
- tuning function memory for performance and cost
- SNS vs SQS vs Kinesis vs EventBridge
- API Gateway vs ALB vs HTTP API
- cost monitoring tools

and much more. The course will have a full retail price of £29.99 (~$39) but while I’m still working on the content you can get it for just £9.99 (~$13).

The first batch of lessons (7) are already available, and I’m going to drop the next batch (8 lessons) on the 24th Jan. The course is scheduled to complete by 13th February, so get it at the preorder price while you can!

You can enrol [here](https://theburningmonk.thinkific.com/courses/learn-you-some-lambda?src=devto).

[![](https://theburningmonk.com/wp-content/uploads/2020/01/img_5e1dc1b365530.png)](https://theburningmonk.thinkific.com/courses/learn-you-some-lambda?src=devto)

### Workshop tour in Europe

My second announcement is that I am taking my **Production-Ready Serverless** workshop public, and running a series of them around Europe.

![](https://theburningmonk.com/wp-content/uploads/2020/01/img_5e17d1832cb6e.png)

It’s a 2-day workshop, designed to get you up to speed quickly and expose you to a variety of best practices and useful techniques for working with Lambda. I have run this workshop as in-house training at many clients, from startups to large enterprises, and taught students of a variety of backgrounds: backend, frontend, devops, infosec, engineers, testers, engineering managers and even CTOs. In other words, there’s something for everyone here.

Whatever your background I’m confident that you will learn something new and useful from this workshop. In fact, I’m so confident of that I’m willing to give you a full refund if that’s not the case!

So far, I have planned 6 stops:

- **[Amsterdam, March 19-20](https://www.eventbrite.co.uk/e/production-ready-serverless-tickets-88658334465?aff=Blog)**
- [**Helsinki, May 4-5**](https://www.eventbrite.co.uk/e/production-ready-serverless-tickets-88697680149?aff=Blog)
- [**Stockholm, May 14-15**](https://www.eventbrite.co.uk/e/production-ready-serverless-2-days-incl-vat-tickets-88856755949?aff=Blog)
- [**Dublin, June 16-17**](https://www.eventbrite.co.uk/e/production-ready-serverless-2-days-incl-vat-tickets-88748756921?aff=Blog)
- [**London, September 24-25**](https://www.eventbrite.co.uk/e/production-ready-serverless-2-days-incl-vat-tickets-88726678885?aff=Blog)
- [**Berlin, October 8-9**](https://www.eventbrite.co.uk/e/production-ready-serverless-2-days-incl-vat-tickets-88733037905?aff=Blog)

As a thank you for your continued readership, here’s a promo code that gives you **10% off** at any of these workshops: **thank-you-for-your-readership-wk39**. It is valid for the next 2 weeks, and the first five of you that sign up.

### New posts

[**Amazon Builders’ Library in Focus #3: avoiding fallback in distributed systems**](https://lumigo.io/blog/amazon-builders-library-in-focus-3-avoiding-fallback-in-distributed-systems/). I summarised [this article](https://aws.amazon.com/builders-library/avoiding-fallback-in-distributed-systems/) by AWS senior principal engineer Jacob Gabrielson on why Amazon don’t use fallbacks in their systems and what they do instead.

[**Amazon Builders’ Library in Focus #4: avoiding insurmountable queue backlogs**](https://lumigo.io/blog/amazon-builders-library-in-focus-3-avoiding-fallback-in-distributed-systems/). I summarised [this article](https://aws.amazon.com/builders-library/avoiding-insurmountable-queue-backlogs/) by AWS principal engineer David Yanacek on the design approaches Amazon employ to avoid building up an insurmountable amount of backlog in their queues.

[**AWS Salary Survey**](https://www.jeffersonfrank.com/aws-salary-survey/). I wrote the foreword for the AWS salary survey 2018-2019, published by Jefferson Frank. It contains a bunch of useful insights about salary trends by country, benefits of certification, diversity at the workplace, and the job market for AWS professionals in general. If you’re considering a new career in 2020, then give this a read to see what you might be able to expect from the market.

### Upcoming talks

I’m talking about common mistakes companies make when adopting serverless at [ServerlessDays Belfast](https://belfast.serverlessdays.io/) on Jan 24th.

And then on Jan 31st, I will be at the [AWS Community Day Nordics](https://awscommunitynordics.org/communityday/) in Stockholm, talking about the essential open source tools for serverless developers.

After that, I have a busy February ahead of me:

- [DDD Europe](https://dddeurope.com/2020/eventsourcing/) (Amsterdam)
- [ServerlessDays Cardiff](https://cardiff.serverlessdays.io/)
- [Frontend Developer Love](https://frontenddeveloperlove.com/) (Amsterdam)
- [ServerlessDays Rome](https://rome.serverlessdays.io/) (where I’m also running a 1-day workshop)

Hope to catch you at one of these events!

### Open source contributions

We have continued to push more features into the lumigo-cli.

For instance, I often find myself wondering about my functions’ cold start performance but don’t have a way to measure it reliably as it’s not easy to collect statistically significant sample sets by hand. So I added a new _measure-lambda-cold-starts_ command to help you do just that.

![](https://theburningmonk.com/wp-content/uploads/2020/01/img_5e2438071ed18.png)

When you run the command, it’ll deploy a [state machine](https://serverlessrepo.aws.amazon.com/applications/arn:aws:serverlessrepo:us-east-1:374852340823:applications~measure-cold-start) to induce the desired number of cold starts and collect stats about the initialization time (the only part of the cold start process that you can actually optimize). The state machine inserts and touches a random environment variable between each invocation to ensure that each invocation is a cold start. Shout out to [Alex Casalboni](https://twitter.com/alex_casalboni) as this approach was inspired by his [lambda-powertuning SAR](https://github.com/alexcasalboni/aws-lambda-power-tuning).

![](https://theburningmonk.com/wp-content/uploads/2020/01/img_5e243888befa5.png)

Another challenge that we have come across time and time again, is how to clear those temporary AWS accounts you use to experiment with new services or features. It has stung many of us when we get a big bill at the end of the month because we forgot to delete some of these resources…

{% tweet 1218453873834086401 %}

Many thanks to [Efi](https://twitter.com/TServerless) for contributing this wonderful command that will hopefully save you from a similar pain!

![](https://theburningmonk.com/wp-content/uploads/2020/01/img_5e243a464317a.png)

And I also made some changes to the *analyze-lambda-cold-starts* command to support analyzing cold starts that happened in the last X minutes (previously you had to set a minimum of 1 hour).

![](https://theburningmonk.com/wp-content/uploads/2020/01/img_5e245eb692f7d.png)

And the command now returns additional data points – p75, p95 and standard deviation.

![](https://theburningmonk.com/wp-content/uploads/2020/01/img_5e245f6eb2a7c-2048x471.png)

### Thank you to my patrons

Finally, I want to say hi to my new patrons:

_Alexis, Michael Wills, Tendies123 and Kevin Woods_

and give a shout out to my other patrons:

_Andre Silva, Boseok In, Ebru Cucen, Hrafnkell Palsson, Joe Kearney, Jon Barber, Jonathan Kosgei, Luis Gutierrez, Marko @ Serverless Life, Sal DiStefano, Shawn MacIntyre, Will Saunders, Yinan Xue_

Thank you guys so much for your continued support!

Liked this article? Support me on Patreon and get direct help from me via a private Slack channel or 1-2-1 mentoring.

[![](https://theburningmonk.com/wp-content/uploads/2019/10/Screenshot-2019-10-19-at-11.44.09.png)](https://www.patreon.com/bePatron?u=905909)

 ![](https://theburningmonk.com/wp-content/uploads/2019/10/img_5dab0c477fc72.png)

Hi, my name is **Yan Cui**. I’m an **[AWS Serverless Hero](https://aws.amazon.com/developer/community/heroes/yan-cui/)** and the author of [**Production-Ready Serverless**](https://bit.ly/production-ready-serverless). I specialise in rapidly transitioning teams to serverless and building production-ready services on AWS.

Are you struggling with serverless or need guidance on best practices? Do you want someone to review your architecture and help you avoid costly mistakes down the line? Whatever the case, I’m here to help.

You can contact me via [Email](mailto:theburningmonk.com), [Twitter](https://twitter.com/theburningmonk) and [LinkedIn](https://www.linkedin.com/in/theburningmonk/).

[Hire me.](https://theburningmonk.com/hire-me)

The post [Weekly update 39](https://theburningmonk.com/2020/01/weekly-update-39/) appeared first on [theburningmonk.com](https://theburningmonk.com).

 ![](http://feeds.feedburner.com/~r/theburningmonk/~4/efzJoZI5vNg)