Class ManyAsyncStepsExample
java.lang.Object
software.amazon.lambda.durable.DurableHandler<ManyAsyncStepsExample.Input,ManyAsyncStepsExample.Output>
software.amazon.lambda.durable.examples.ManyAsyncStepsExample
- All Implemented Interfaces:
com.amazonaws.services.lambda.runtime.RequestStreamHandler
public class ManyAsyncStepsExample
extends DurableHandler<ManyAsyncStepsExample.Input,ManyAsyncStepsExample.Output>
Performance test example demonstrating concurrent async steps.
This example tests the SDK's ability to handle many concurrent operations:
- Creates async steps in a loop
- Each step performs a simple computation
- All results are collected using
DurableFuture.allOf(software.amazon.lambda.durable.DurableFuture<T>...)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final record -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionhandleRequest(ManyAsyncStepsExample.Input input, DurableContext context) Handle the durable execution.Methods inherited from class software.amazon.lambda.durable.DurableHandler
createConfiguration, createObjectMapper, getConfiguration, handleRequest
-
Constructor Details
-
ManyAsyncStepsExample
public ManyAsyncStepsExample()
-
-
Method Details
-
handleRequest
public ManyAsyncStepsExample.Output handleRequest(ManyAsyncStepsExample.Input input, DurableContext context) Description copied from class:DurableHandlerHandle the durable execution.- Specified by:
handleRequestin classDurableHandler<ManyAsyncStepsExample.Input,ManyAsyncStepsExample.Output> - Parameters:
input- User inputcontext- Durable context for operations- Returns:
- Result
-