Lambda

Just how expensive is the full AWS SDK?

If you’re not familiar with how cold start works within the context of AWS Lambda, then read this post first. When a Node.js Lambda function cold starts, a number of things happen: the Lambda service has to find a server with enough capacity to host the new container the new container is initialized the Node.js …

Just how expensive is the full AWS SDK? Read More »

DynamoDB TTL as an ad-hoc scheduling mechanism

CloudWatch Events let you easily create cron jobs with Lambda. However, it’s not designed for running lots of ad-hoc tasks, each to be executed once, at a specific time. The default limit on CloudWatch Events is a lowly 100 rules per region per account. It’s a soft limit, so it’s possible to request a limit …

DynamoDB TTL as an ad-hoc scheduling mechanism Read More »

Lambda optimization tip – enable HTTP keep-alive

I recently watched an excellent talk by Matt Lavin on optimization tips for Lambda and saw a slide on making DynamoDB use HTTP keep-alive. It reminded me of a conversation I had with Sebastian Cohnen, so I set out to test the effect this simple optimization has. What is it all about? As it turns …

Lambda optimization tip – enable HTTP keep-alive Read More »

You are thinking about serverless costs all wrong

The Register published an article right before Christmas 2018. It had a somewhat provocative title, and somehow it ended up in my inbox from a few different sources. I felt the whitepaper the article refers to provided some interesting analysis. But the case studies it used to make its point are not representative of what …

You are thinking about serverless costs all wrong Read More »

Production-Ready Serverless is coming to a workshop near you!

As we approach the completion of my video course Production-Ready Serverless, I have also delivered the course in a classroom setting with both SimplyBusiness and the DVLA in the UK. In the coming months, I will also be running public workshops at various conferences and user groups: AWS User Group 17th Oct @ The Telegraph, London (sold …

Production-Ready Serverless is coming to a workshop near you! Read More »

Step Functions : apply try-catch to a block of states

In my last post we talked about how we can implement semaphores with Step Functions. Another common scenario that many people have is to handle errors from a block of states like we’re used to with a try-catch block. try { step1() step2() step3() } catch (States.Timeout) { … } catch (States.ALL) { … } …

Step Functions : apply try-catch to a block of states Read More »

How to create IP-protected endpoints with API Gateway and Lambda

If you haven’t been paying close attention you might have missed the API Gateway announcement for resource policies. It later played a key role in supporting API Gateway private endpoints – a way to put your API inside a private VPC. To configure resource policies with the Serverless framework, you need to upgrade to v1.28.0 or …

How to create IP-protected endpoints with API Gateway and Lambda Read More »

Centralised logging for AWS Lambda, REVISED (2018)

First of all, I would like to thank all of you for following and reading my content. My post on centralised logging for AWS Lambda has been viewed more than 20K times by now, so it is clearly a challenge that many of you have run into. In the post, I outlined an approach of …

Centralised logging for AWS Lambda, REVISED (2018) Read More »

Step Functions: how to implement semaphores for state machines

Here at DAZN, we are migrating from our legacy platform into a brave new world of microfrontends and microservices. Along the way, we also discovered the delights that AWS Step Function has to offer, for example… flexible error handling and retry the understated ability to wait between tasks the ability to mix automated steps with …

Step Functions: how to implement semaphores for state machines Read More »

Video and slides for my talk “applying principles of chaos engineering to Serverless”

Hello, just a quick note to tell you that recording of my talk at the recent AWS User Group meetup is now live! In this talk, I introduced the core concepts of chaos engineering, and the challenges that the Serverless paradigm brings to the existing tools and practices we use. I then looked at techniques …

Video and slides for my talk “applying principles of chaos engineering to Serverless” Read More »

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close