Our serverless superhero this week is Gillian Armstrong, senior Solutions Architect at AWS and former Machine Learning Hero. She is a co-organizer of ServerlessDays Belfast, which was held last week (and was awesome). Gillian is a tremendous serverless advocate is routinely sharing her expertise on panels and conferences. Thank you for all your contributions to the community, Gillian!
.NET is on the rise with Lambda lately. It’s a great language and I am happy to see it get some love (I spent the first 7 years of my career as a .NET developer). Steve Roberts showed us how to boost your .NET functions with the Lambda Annotations Framework. He walks us through how to take your existing functions and migrate them over to the annotation framework to simplify your designs and make maintenance easier in the long run.
As I always say, we don’t talk about security enough. One topic within security is JWT management. We don’t ever talk about that. Benjamen Pyle shared with us an interesting article on customizing Cognito-issued JWTs where he talks about how he uses a Lambda function to enrich the encoded JWT information. He even offers sample CDK code to get you off and running with the concept. Great article!
Leave it to the community to find and work around edge cases of new features. Apparently there’s an issue when connecting an EventBridge pipe to a DynamoDB stream when a record contains an array. But fear not! Jason Wadsworth figured out how to get around it. Without spoiling the content, there’s an easy workaround you can do in the pipe enrichment that gets you out of trouble.
I make it no secret that Step Functions is my favorite AWS service. Whenever I see an article that advocates for Step Functions and provides legitimate reasons why it’s better than a Lambda function that does 8+ things, I always get excited. Matt Morgan did just that last week. He describes how to avoid the serverless workflow antipattern in detail and covers why Step Functions is a better orchestrator than SQS -> Lambda. He also provides great resources to learn more about the service.
Ran Isenberg is back, and this time tackling a beast of a topic: Serverless testing. This is part 1 of a series on best practices around testing a serverless application. He talks about application structure, where you should (and shouldn’t) debug, mocking AWS services, and much more. This is a topic in desperate need of some normalization, and Ran’s article is a great start.
In the era of rapid cloud innovation, it’s exciting to see SQL moving forward to a truly distributed model. PingCAP is an innovator in this space - their database, TiDB, efficiently supports a broader range of queries using both row and column storage, and it’s available in a managed cloud form (there’s even a serverless tier you can try). In his latest blog post, Pete Naylor explores the unique capabilities of this game-changing database and shows how Momento Serverless Cache can accelerate its performance. A fascinating read! Sponsored
Serverless gets a bad rap in some circles because of cold starts. But a cold start isn’t the only cause of latency in the cloud. I (Allen Helton) wrote about how geographic distance adds to your API latency. If your backend functions are calling 3rd party services in other regions, you could be paying for a lot of added execution time! In the article, I posed it as a serverless problem, but it applies to anything in the cloud. Keep this in mind next time you’re building a new service!
Jeremy Daly talked about the side effect of increasing developer responsiblity in a post last week. He starts off with a history of software developer responsibilities and progresses into explaining a real problem we face nowadays. It’s an open-ended article leaving you with thoughts on how we can approach cloud development (not just serverless) differently to make it sustainable for individuals long term. Without taking action, the new set of responsibilities is sure to increase stress levels and burnout rates.
A swath of releases came out last week:
You can trigger a Lambda function from an Amazon DocumentDB change stream. This is similar to what you can do with DynamoDB, but for DocumentDB!
The AWS Lambda Powertools for .NET went GA! Similar to the Lambda Powertools for TypeScript, this package provides easy abstractions for structured logging, distributed tracing, and metrics.
Rust developers rejoice! AWS SAM CLI can now build Rust packages, making it significantly easier and less of a hassle to build your serverless applications in this blazing fast language.
Amazon Neptune Serverless can now scale down to 1 NCU. While it’s not scale to 0, it’s a step in the right direction.
A new slew of AWS Community Builders were accepted into the program this week! It always warms my heart to see the excitement and vigor in every new cohort. Hundreds of new builders have been inducted, so be on the lookout for more great content from them, especially in the Dev.to AWS Community Builders organization. Congratulations community builders!!
I tend to shy away from polarizing topics for obvious reasons. But I saw a dramatic oversimplification and short-sighted opinion that reached a lot of people in the community and figured I’d weigh in. David Hansson has been pretty vocal about his distaste for serverless and the cloud for a while. But the tweet sharing his article on how serverless is too expensive is just silly. There is so much more to cost than your cloud bill. Basing significant technical decisions on “vendor lock-in” and a monthly cloud bill misses the point of serverless in its entirety. It’s about shared responsibility, building without limits, and focus on solving business problems. Take what he says with a grain of salt. Don’t be dismissive, but understand he’s not capturing the whole story.
"Don't be fooled by serverless. No magic can change the fact that if you need all the cycles of a computer, you ought to own that computer. And if you start off with a proprietary serverless setup, you might well find the lock-in impossible to escape." https://t.co/UIJRmpjIy9— DHH (@dhh) February 27, 2023
Conference CFPs are opening up like crazy. Are you going to be speaking at any? Did you already speak at one and want to share? Let me know!
If you’d like to make a recommendation for the serverless superhero or for an article you found especially useful, send me a message on Twitter, LinkedIn, or email.