How can we apply the principles of chaos engineering to AWS Lambda?

This is the first of a mul­ti­part series that explores ideas on how we could apply the prin­ci­ples of chaos engi­neer­ing to server­less archi­tec­tures built around Lamb­da func­tions. part 1: how can we apply prin­ci­ples of chaos engi­neer­ing to Lamb­da? <- you’re here part 2: laten­cy injec­tion for APIs part 3: fault injec­tion for Lamb­da …

How can we apply the prin­ci­ples of chaos engi­neer­ing to AWS Lamb­da?Read More »

Mind the 75GB limit on AWS Lambda deployment packages

Got­ta clean up those old Lamb­da deploy­ment pack­ages! With AWS Lamb­da and the Server­less frame­work, deploy­ing your code has become so sim­ple and fric­tion­less. As you move more and more of your archi­tec­ture to run on Lamb­da, you might find that, in addi­tion to get­ting things done faster you are also deploy­ing your code more fre­quent­ly. That’s awe­some! But, …

Mind the 75GB lim­it on AWS Lamb­da deploy­ment pack­agesRead More »

You should use SSM Parameter Store over Lambda env variables

AWS Lamb­da announced native sup­port for envi­ron­ment vari­ables at the end of 2016. But even before that, the Server­less frame­work had sup­port­ed envi­ron­ment vari­ables and I was using them hap­pi­ly as me and my team at the time migrat­ed our mono­lith­ic Node.js back­end to server­less. How­ev­er, as our archi­tec­ture expand­ed we found sev­er­al draw­backs with man­ag­ing con­fig­u­ra­tions with envi­ron­ment vari­ables. …

You should use SSM Para­me­ter Store over Lamb­da env vari­ablesRead More »

Using Protocol Buffers with API Gateway and AWS Lambda

AWS announced bina­ry sup­port for API Gate­way in late 2016, which opened up the door for you to use more effi­cient bina­ry for­mats such as Google’s Pro­to­col Buffers and Apache Thrift. Why? Com­pared to JSON — which is the bread and but­ter for APIs built with API Gate­way and Lamb­da — these bina­ry for­mats can pro­duce sig­nif­i­cant­ly small­er pay­loads. At scale, …

Using Pro­to­col Buffers with API Gate­way and AWS Lamb­daRead More »

Capture and forward correlation IDs through different Lambda event sources

Server­less archi­tec­tures are microser­vices by default, you need cor­re­la­tion IDs to help debug issues that spans across mul­ti­ple func­tions, and pos­si­bly dif­fer­ent event source types — asyn­chro­nous, syn­chro­nous and streams. This is the last of a 3-part mini series on man­ag­ing your AWS Lamb­da logs. If you haven’t read part 1 yet, please give it a read now. …

Cap­ture and for­ward cor­re­la­tion IDs through dif­fer­ent Lamb­da event sourcesRead More »

Tips and tricks for logging and monitoring AWS Lambda functions

The com­mon prac­tice of using agents/daemons to buffer and batch send logs and met­rics are no longer applic­a­ble in the world of server­less. Here are some tips to help you get the most out of your log­ging and mon­i­tor­ing infra­struc­ture for your func­tions. This is part 2 of a 3-part mini series on man­ag­ing your …

Tips and tricks for log­ging and mon­i­tor­ing AWS Lamb­da func­tionsRead More »

Centralised logging for AWS Lambda

Cloud­Watch Logs is hard­ly the ide­al fit for all your log­ging needs, for­tu­nate­ly you can eas­i­ly stream the logs to your pre­ferred log aggre­ga­tion ser­vice with AWS Lamb­da func­tions. This is the first of a 3-part mini series on man­ag­ing your AWS Lamb­da logs. In part 1 we will look at how you can get …

Cen­tralised log­ging for AWS Lamb­daRead More »

Write recursive AWS Lambda functions the right way

You may not realise that you can write AWS Lamb­da func­tions in a recur­sive man­ner to per­form long-run­n­ing tasks. Here’s two tips to help you do it right. AWS Lamb­da lim­its the max­i­mum exe­cu­tion time of a sin­gle invo­ca­tion to 5 min­utes. Whilst this lim­it might be raised in the future, it’s like­ly that you’ll still …

Write recur­sive AWS Lamb­da func­tions the right wayRead More »

Many-faced threats to Serverless security

Threats to the secu­ri­ty of our server­less appli­ca­tions take many forms, some are the same old foes we have faced before; some are new; and some have tak­en on new forms in the server­less world. As we adopt the server­less par­a­digm for build­ing cloud-host­ed appli­ca­tions, we del­e­gate even more of the oper­a­tional respon­si­bil­i­ties to our …

Many-faced threats to Server­less secu­ri­tyRead More »

Running and debugging AWS Lambda functions locally with the Serverless framework and VS Code

One of the com­plaints devel­op­ers often have for AWS Lamb­da is the inabil­i­ty to run and debug func­tions local­ly. For Node.js at least, the Server­less frame­work and VS Code pro­vides a good solu­tion for doing just that. An often under­used fea­ture of the Server­less frame­work is the invoke local com­mand, which runs your code local­ly by …

Run­ning and debug­ging AWS Lamb­da func­tions local­ly with the Server­less frame­work and VS CodeRead 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.