My Top Three AWS re:Invent 2021 Announcements
Published: 2021-12-09 14:10:53

---
title: My Top Three AWS re:Invent 2021 Announcements
published: true
date: 2021-12-09 01:12:03 UTC
tags: 
canonical_url: https://danielleheberling.xyz/blog/reinvent-2021/
---

Disclaimer that this post contains my individual opinions and yours might differ. Let’s get started!

## 1. [SQS Partial Batch Retries in Lambda](https://aws.amazon.com/about-aws/whats-new/2021/11/aws-lambda-partial-batch-response-sqs-event-source/)

[![Cookies](https://danielleheberling.xyz/static/4fc043843c4f81cf3198953afe9379fe/1c72d/cookies.jpg "Cookies")](/static/4fc043843c4f81cf3198953afe9379fe/0f98f/cookies.jpg)

> Photo by [Jonathan Farber](https://unsplash.com/@farber?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText) on [Unsplash](https://unsplash.com/s/photos/batch?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText)

### What this means

This feature was announced during pre:Invent, but I think it still counts. Before, if SQS messages were sent as a batch into Lambda, you had the choice to return a response of a full failure or full success for the batch. Now we have an extra setting that allows queue retry behavior to be at the record level instead of the batch level. If one or more messages within that batch fail, you have the option to only send the failed messages back to the queue to attempt a retry.

### Why it’s exciting

This allows me to delete some code that I wrote to ensure each message is idempotent and also allows me to reduce the number of API calls made to check if a message was processed before.

## 2. [AWS Cloud Development Kit (CDK) v2 is Generally Available](https://aws.amazon.com/about-aws/whats-new/2021/12/aws-cloud-development-kit-cdk-generally-available/)

[![Tools](https://danielleheberling.xyz/static/0ca3061342e6987672c10c47dfc5ee58/1c72d/tools.jpg "Tools")](/static/0ca3061342e6987672c10c47dfc5ee58/0f98f/tools.jpg)

> Photo by [iMattSmart](https://unsplash.com/@imattsmart?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText) on [Unsplash](https://unsplash.com/s/photos/hammer?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText)

### What this means

CDK v2 has been in developer preview for a while and it brings in some exciting features.

Notable changes include:

- One dependency library for all AWS services
- Stable APIs are enforced via [semver](https://semver.org/)
- Introduction of [`cdk watch`](https://aws.amazon.com/blogs/developer/increasing-development-speed-with-cdk-watch/) which auto-deploys code for you as you edit locally and save the changes. (Note that AWS does not recommend the use of this feature in production environments.)

### Why it’s exciting

AWS took customer feedback and addressed some of the common painpoints with the original release of CDK. To me, these changes show maturity in the tool and increases my confidence in using it for production workloads.

## 3. [Sustainability Pillar for AWS Well-Architected Framework](https://aws.amazon.com/blogs/aws/sustainability-pillar-well-architected-framework/)

[![Windmill](https://danielleheberling.xyz/static/d8d9bd9d8079f6a3df854ca4567848e7/1c72d/windmill.jpg "Windmill")](/static/d8d9bd9d8079f6a3df854ca4567848e7/0f98f/windmill.jpg)

> Photo by [Karsten Würth (➡️ @karsten.wuerth)](https://unsplash.com/@karsten_wuerth?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText) on [Unsplash](https://unsplash.com/s/photos/environment?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText)

### What this means

AWS released a whitepaper that outlines best practices and recommendations around how to run workloads in the cloud with a focus on sustainability.

### Why it’s exciting

Just because things are running in someone else’s data center, doesn’t mean that it isn’t using up natural resources. With the recent unprecedented weather events, it’s important to get started thinking about this now. The fact that AWS made this an official pillar shows that they also care about this.

## Closing

It was difficult to choose just three, because there were many great announcements during this conference. Overall, the announcements felt more incremental than innovative which I totally support. It’s much better to improve on an existing service than to continually launch new services that aren’t fully ready for production.

I encourage you to check out all of the announcements [here](https://aws.amazon.com/blogs/aws/top-announcements-of-aws-reinvent-2021/). What were some of your favorite announcements and why?

> “Now go build” - Werner Vogels