AWS

Production-Ready Serverless is back (with improved curriculum)!

My 4-week Production-Ready Serverless workshop is back! With an improved and more comprehensive curriculum based on student feedback from the last run in May, when over 50 students from around the world took part. This is a hands-on workshop where you will learn best practices for building serverless applications by building an e-commerce solution from …

Production-Ready Serverless is back (with improved curriculum)! Read More »

How to choose the right API Gateway auth method

Update 21/06/2020: following lots of feedback and questions on Twitter, I have updated the post to include a few more options. Quite a few clients have asked me “Hey Yan, what API Gateway auth method should I use for this REST API?” so I thought I’d share my answer with everyone here. This is the …

How to choose the right API Gateway auth method Read More »

AppSync: how to compare strings lexicographically in VTL

I had been working on a client project where I built the GraphQL backend for a new social network using primarily AppSync, Lambda and DynamoDB. One of the features of the app was to support private messaging between two users. To allow either user to fetch their chat messages in chronological descending order, I modelled …

AppSync: how to compare strings lexicographically in VTL Read More »

AppSync: how to error on DynamoDB conditional check failures

TL;DR To make an AppSync DynamoDB resolver throw exceptions on conditional check errors, we need to check $context.error in the response mapping template ourselves. Like this: #if ( $ctx.error ) #if ( $ctx.error.type.equals(“DynamoDB:ConditionalCheckFailedException”) ) $util.error(“your error message”) #else $util.error($ctx.error.message, $ctx.error.type) #end #end $utils.toJson($context.result) And now, the longer version. The problem AppSync lets us perform DynamoDB …

AppSync: how to error on DynamoDB conditional check failures Read More »

Skill up your serverless game with my new instructor-led online workshop

Have you been wondering about serverless but just don’t know how and where to start? Maybe you’re already building stuff with serverless, but don’t know if you’re doing it right? Are you unsure about the best practices for testing, monitoring and how to choose between similar services like SNS and EventBridge?   I have just …

Skill up your serverless game with my new instructor-led online workshop Read More »

Hit the 6MB Lambda payload limit? Here’s what you can do.

So you have built a serverless application, that, amongst other things, lets you upload images and files to S3. The set-up is very simple: API Gateway, Lambda and S3. It took you no time to implement and it works like a dream. You pat yourself on the back for another job well done. Until one …

Hit the 6MB Lambda payload limit? Here’s what you can do. Read More »

AppSync: skipping nullable nested resolvers by returning early

Whilst working on a client project, I ran into an interesting problem with AppSync which I couldn’t find an answer after a lot of googling. I hope this article can save you the same pain should you run into the same problem. The problem is that when you have a nullable nested field that you …

AppSync: skipping nullable nested resolvers by returning early Read More »

How to: optimize Lambda memory size during CI/CD pipeline

Lambda invocations are charged in 100ms blocks of execution time. But the cost per 100ms of execution time depends on how much memory you allocate to the function. The higher the memory, the more CPU cycles and network bandwidth, but the higher the cost as well. One of the simplest and most efficient cost optimization …

How to: optimize Lambda memory size during CI/CD pipeline Read More »

Real-World Serverless: fully-serverless insurance company with Joe Emison

In this two-part conversation on Real-World Serverless, I spoke with Joe Emison about his experience with serverless and his latest venture, Branch, a home and auto insurance company that is built fully-serverlessly by a small team. Joe is easily one of the smartest people working with serverless technologies today and I’m very grateful that he …

Real-World Serverless: fully-serverless insurance company with Joe Emison 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