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
dotNet6
Polly with .NET 6, Part 8 - Policy Registry with Minimal APIs, and HttpClientFactory
You can use the Polly Policy Registry with Minimal APIs and HttpClientFactory. Read on to see how.
Mar 15, 2023
#
Polly
,
dotNet6
,
Minimal API
,
Dependency Injection
,
HttpClientFactory
,
Polly Registry
Polly with .NET 6, Part 7 - Policy Wraps with Minimal APIs, and HttpClientFactory
In the previous post I showed how to pass a Polly Policy Wrap into an Minimal API endpoint with dependency injection. In this post I’ll show to use the Policy Wrap with the Http Client Factory, passing that into the endpoint.
Dec 1, 2022
#
Polly
,
dotNet6
,
Minimal API
,
Dependency Injection
,
HttpClientFactory
Lambda Cold Starts - .NET 7 Native AOT vs .NET 6 Managed Runtime
The release of .NET 7 brings with it a new way to compile and run .NET code - native AOT compilation. This post compares the cold start time of a Lambda function running on .NET 7 after native AOT compilation with the cold start time of a Lambda function running on .NET 6 with the managed runtime. The results are surprisingly good.
Nov 17, 2022
#
AWS
,
AWS Lambda
,
AOT
,
Cold Start
,
dotnet7
,
dotNet6
,
Function as a Service
Polly with .NET 6, Part 6 - Policy Wraps with Minimal APIs
Polly Policy Wraps let you apply multiple types of resilience to a single operation. Using them with Minimal API Endpoints is easy, read on to see how.
Nov 7, 2022
#
Polly
,
dotNet6
,
Minimal API
,
Dependency Injection
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
A Simple Example of Using a Distributed Cache (Redis) in .NET 6 with API Endpoints
Following on from my previous post on using a memory cache, here I show how to use a distributed memory cache with Redis.
Jul 6, 2022
#
dotNet6
,
Caching
,
Distributed Cache
,
DI
,
Redis
,
Minimal API
A Simple Example of Using the Memory Cache in .NET 6 with API Endpoints
I have used the Microsoft memory cache many times in the past, but didn’t know how to use it with .NET 6 endpoints, so here is a blog post that should save you a little time if you haven’t done it before.
Jun 27, 2022
#
dotNet6
,
Caching
,
Memory Cache
,
DI
,
Minimal API
»
Cite
×