You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Automatic JSON deserialization from event records to your types
Optional ILambdaContext injection for timeout handling and request tracking
Example Usage:
Simple typed handler:
publicclassOrderHandler:ITypedRecordHandler<Order>{publicasyncTask<RecordHandlerResult>HandleAsync(Orderorder,CancellationTokencancellationToken){// Direct access to strongly-typed object - no manual deserialization!awaitProcessOrder(order);returnRecordHandlerResult.Successful;}}
publicclassProductHandlerWithContext:ITypedRecordHandlerWithContext<Product>{publicasyncTask<RecordHandlerResult>HandleAsync(Productproduct,ILambdaContextcontext,CancellationTokencancellationToken){Logger.LogInformation($"Processing product {product.Id} in request {context.AwsRequestId}");Logger.LogInformation($"Remaining time: {context.RemainingTime.TotalSeconds}s");// Use context for timeout handlingif(context.RemainingTime.TotalSeconds<5){Logger.LogWarning("Low remaining time, processing quickly");}returnRecordHandlerResult.Successful;}}
Contributors
Thank you @dcabib for your contributions to this release! ⭐
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
We're excited to announce a major release with new features and important updates:
This major version bump reflects significant breaking changes as we update our supported runtimes and dependencies.
Breaking Changes
New Features
Strongly-Typed Batch Processor
Process batch events with type safety and automatic deserialization.
What's New:
ITypedRecordHandler<T>
andITypedRecordHandlerWithContext<T>
interfaces for strongly-typed processingTypedSqsBatchProcessor
,TypedKinesisEventBatchProcessor
,TypedDynamoDbStreamBatchProcessor
ILambdaContext
injection for timeout handling and request trackingExample Usage:
Simple typed handler:
With Lambda context support (docs):
Contributors
Thank you @dcabib for your contributions to this release! ⭐
Changes
🐞 Bug fixes
📜 Documentation updates
86d21da
to00f9276
in /docs (chore(deps): bump squidfunk/mkdocs-material from86d21da
to00f9276
in /docs #1013) by @dependabot[bot]209b62d
to86d21da
in /docs (chore(deps): bump squidfunk/mkdocs-material from209b62d
to86d21da
in /docs #996) by @dependabot[bot]🔧 Maintenance
86d21da
to00f9276
in /docs (chore(deps): bump squidfunk/mkdocs-material from86d21da
to00f9276
in /docs #1013) by @dependabot[bot]209b62d
to86d21da
in /docs (chore(deps): bump squidfunk/mkdocs-material from209b62d
to86d21da
in /docs #996) by @dependabot[bot]This release was made possible by the following contributors:
@dependabot[bot], @hjgraca and dependabot[bot]
This discussion was created from the release v3.0.0.
Beta Was this translation helpful? Give feedback.
All reactions