DEV Community

loading...

Re:Invent 2020 And Lambda's New Features

theminimalistdeveloper profile image Rafael Dias Moreira Originally published at theminimalistdeveloper.com on ・3 min read

Originally posted on The Minimalist Developer

Cute little robot

Re:Invent 2020 is approaching, and with it, a wave of new releases from AWS to multiple services, including Lambda.

This year, of course, will be an online-only event which is free. Go here to check out all the serverless sessions.

Now, let’s take a look at some of the coolest releases from the past few weeks for Lambda we will probably see covered in the upcoming events.

New Lambda Features

Lambda extensions

Lambda extensions

It is still in preview, but this is probably the most exciting release, in my opinion.

Lambda extension allows us to have code running during the life cycle event, meaning that you could, for example, create an extension to collect information before, during, and after the lambda invocation.

Also, there is a Logs API, which translates to much easier integration with 3rd party services like Datadog, Lumigo, New Relic, etc.

This sounds really nice. I want to try it out to see how it works!

AVX2 Support

AVX2This one is geared towards those who use lambdas for heavy computational load, like machine learning, scientific simulations, financial analysis, etc.

AVX2 support is availabel now to help reduce time with the computationally intensive task that way also helping to reduce costs.

AVX2 stands for Advanced Vector Extensions 2, and it is a specific instruction set available at certain processors. And to use it it is necessary to have in place certain libraries compiled with the proper flags.

AWS PrivateLink access

Lambda now offers the support for AWS PrivateLink. It allows calling functions from a VPC without going through public networks. Providing a private connection between your VPCs and AWS services.

I want to see how the performance is with this one. The last time I checked VPCs and Lambdas were not that great together. But it was a long time ago.

SQS batch Limit up to 10k

Amazon SQS had previously, the batch size limit of 10 messages per batch. Now it is up to 10.000, matching its brother Amazon Kinesis.

SQS Batch Window up to 5 minutes

The Batch window is a cool little feature. It tells the poller to wait until the queue has reached its batch limit or the batch window time to send to the lambda function. This is particularly useful to cut the number of invocations for non-time-sensitive computation.

Amazon MQ as an event source

Launched support for Amazon MQ as an event source for Lambda. Amazon MQ is a managed message broker service. The integration operates in a similar way to Amazon SQS and Amazon Kinesis. The Lambda services keep an internal poller to invoke the target Lambda function whenever necessary.

Conclusion

There are many more features from other services that AWS is launching. Make sure to keep an eye on the releases.

It might help you solve one of those pending problems from your backlog!

Discussion

pic
Editor guide