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
You can use Batch processing without using the decorator.
731
731
732
-
Calling the **`ProcessAsync`** method on the Instance of the static BatchProcessor (`SqsBatchProcessor`, `DynamoDbStreamBatchProcessor`, `KinesisDataStreamBatchProcessor`)
732
+
Calling the **`ProcessAsync`** method on the Instance of the static BatchProcessor (`SqsBatchProcessor`, `DynamoDbStreamBatchProcessor`, `KinesisEventBatchProcessor`)
733
733
734
734
=== "Function.cs"
735
735
@@ -750,7 +750,7 @@ Calling the **`ProcessAsync`** method on the Instance of the static BatchProcess
750
750
751
751
```
752
752
753
-
To make the handler testable you can use Dependency Injection to resolve the BatchProcessor (`SqsBatchProcessor`, `DynamoDbStreamBatchProcessor`, `KinesisDataStreamBatchProcessor`) instance and then call the **`ProcessAsync`** method.
753
+
To make the handler testable you can use Dependency Injection to resolve the BatchProcessor (`SqsBatchProcessor`, `DynamoDbStreamBatchProcessor`, `KinesisEventBatchProcessor`) instance and then call the **`ProcessAsync`** method.
754
754
755
755
=== "GetRequiredService inside the method"
756
756
@@ -840,7 +840,7 @@ You can also set `POWERTOOLS_BATCH_MAX_DEGREE_OF_PARALLELISM` Environment Variab
840
840
841
841
You might want to bring custom logic to the existing `BatchProcessor` to slightly override how we handle successes and failures.
842
842
843
-
For these scenarios, you can create a class that inherits from `BatchProcessor` (`SqsBatchProcessor`, `DynamoDbStreamBatchProcessor`, `KinesisDataStreamBatchProcessor`) and quickly override `ProcessAsync` and `HandleRecordFailureAsync` methods:
843
+
For these scenarios, you can create a class that inherits from `BatchProcessor` (`SqsBatchProcessor`, `DynamoDbStreamBatchProcessor`, `KinesisEventBatchProcessor`) and quickly override `ProcessAsync` and `HandleRecordFailureAsync` methods:
844
844
845
845
***`ProcessAsync()`** – Keeps track of successful batch records
846
846
***`HandleRecordFailureAsync()`** – Keeps track of failed batch records
Copy file name to clipboardExpand all lines: libraries/tests/AWS.Lambda.Powertools.BatchProcessing.Tests/Handlers/Kinesis/Custom/CustomKinesisBatchProcessors.cs
Copy file name to clipboardExpand all lines: libraries/tests/AWS.Lambda.Powertools.BatchProcessing.Tests/Handlers/Kinesis/Custom/CustomKinesisHandlers.cs
0 commit comments