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
Copy file name to clipboardExpand all lines: docs/utilities/batch-processing.md
+1-79Lines changed: 1 addition & 79 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ stateDiagram-v2
36
36
- Typed batch processing with automatic deserialization
37
37
- Lambda context injection for typed handlers
38
38
- AOT (Ahead-of-Time) compilation support
39
-
- Fluent API for inline handler configuration
39
+
40
40
- Bring your own batch processor
41
41
- Parallel processing
42
42
@@ -357,53 +357,9 @@ Processing batches from SQS using Lambda handler decorator works in three stages
357
357
When using [SQS FIFO queues](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html){target="_blank"}, we will stop processing messages after the first failure, and return all failed and unprocessed messages in `batchItemFailures`.
358
358
This helps preserve the ordering of messages in your queue. Powertools automatically detects a FIFO queue.
359
359
360
-
#### Using Fluent API with Typed Handlers
361
-
362
-
You can also use the fluent API for more flexible inline handler configuration:
363
-
364
-
=== "Function.cs"
365
-
366
-
```csharp hl_lines="3-13"
367
-
public async Task<BatchItemFailuresResponse> HandlerUsingFluentApi(SQSEvent sqsEvent, ILambdaContext context)
368
-
{
369
-
var result = await TypedSqsBatchProcessor.Instance
// Check if typed handlers are configured (not yet fully supported in attributes)
303
303
if(IsTypedHandlerConfigured())
304
304
{
305
-
thrownewNotSupportedException("Typed record handlers are not yet fully supported with BatchProcessorAttribute. Please use the fluent API or direct typed batch processor calls for typed processing.");
305
+
thrownewNotSupportedException("Typed record handlers are not yet fully supported with BatchProcessorAttribute. Please use direct typed batch processor calls for typed processing.");
0 commit comments