no dogma blog
no dogma blog
Blog Posts
Podcast
Web API Lambda Course
Polly Course
Photos
Contact
Support this Site
About
RSS
Light
Dark
Automatic
Posts
Reducing Boilerplate Code in .NET Applications with Command Line Switches
All
dotnet new...
commands take switches that let you tweak the generated project and code. In this example, you will see how to reduce by half the boilerplate code in
Program.cs
for Web API applications.
Sep 6, 2022
#
Command Line Switches
,
Top Level Statements
,
Minimal API
,
dotNet
Using the Secrets Manager Cache with .NET
Secrets are usually retrieved far more often than they are changed. The AWS Secrets Manager cache lets you cache secrets for a specified period, reducing the number of requests your applications need to make.
Sep 1, 2022
#
AWS
,
Secrets Manager
,
dotNet
Lambda function A/B Testing with .NET and Function URLs
With Lambda versions and aliases you can setup A/B testing for your functions. This example uses .NET 6 and Lambda Function URLs, but the same principles apply to other languages.
Aug 29, 2022
#
AWS
,
AWS Lambda
,
Function URLs
,
AWS Lambda Aliases
,
AWS Lambda Versions
,
dotNet
,
Function as a Service
Simple Lambda Function with a Function URL
This is a simple Lambda function that uses a Function URL. This blog post will be referenced in more complicated examples.
Aug 25, 2022
#
AWS
,
AWS Lambda
,
Function URLs
,
dotNet
,
Function as a Service
Working with Lambda function versions
If you want to experiment with code variations for a Lambda function, try Lambda versions. In this post, you’ll see how to deploy a stable and experimental version of the same function.
Aug 23, 2022
#
AWS
,
AWS Lambda
,
AWS Lambda Versions
,
dotNet
,
Function as a Service
.NET 7 Custom Runtime for AWS Lambda
You can’t yet run .NET 7 on AWS Lambda functions with the familiar managed runtime, but you can with a custom runtime. Here are the few small steps you need.
Aug 2, 2022
#
AWS
,
AWS Lambda
,
dotnet7
,
dotNet7 Lambda
,
Custom Runtime
,
Function as a Service
Using IOptions with .NET 6 API Endpoints
Here’s a quick example using IOptions with .NET 6 Minimal API endpoints.
Jul 26, 2022
#
dotNet6
,
Minimal API
,
IOptions
,
Options
Signing calls to Lambda Function URLs using IAM auth with HttpClient
If you are using IAM auth with Lambda Function URLs, and you want to call the function using HttpClient from a .NET application, you need to sign the request. Read on to see how.
Jul 22, 2022
#
AWS Lambda
,
dotNet6
,
AWS
,
Function URLs
,
IAM
,
Function as a Service
Using a Memory Cache with .NET Lambda Functions
Even though Lambda functions are “serverless”, and even though there is no guarantee how long a function will remain “warm” for, you might still get good use out of a memory cache.
Jul 14, 2022
#
dotNet6
,
AWS Lambda
,
AWS
,
Memory Cache
,
Caching
,
Function URLs
,
Function as a Service
Paging Through Files in an S3 Bucket with .NET
Here are two ways to page through files in an S3 bucket.
Jul 7, 2022
#
dotNet6
,
AWS
,
S3
,
Paging
«
»
Cite
×