Class ManyAsyncChildContextExample
java.lang.Object
software.amazon.lambda.durable.DurableHandler<ManyAsyncChildContextExample.Input,ManyAsyncChildContextExample.Output>
software.amazon.lambda.durable.examples.ManyAsyncChildContextExample
- All Implemented Interfaces:
com.amazonaws.services.lambda.runtime.RequestStreamHandler
public class ManyAsyncChildContextExample
extends DurableHandler<ManyAsyncChildContextExample.Input,ManyAsyncChildContextExample.Output>
Performance test example demonstrating concurrent async child contexts.
This example tests the SDK's ability to handle many concurrent operations:
- Creates async child context in a loop
- Each child context performs a simple computation in a step
- 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(ManyAsyncChildContextExample.Input input, DurableContext context) Handle the durable execution.Methods inherited from class software.amazon.lambda.durable.DurableHandler
createConfiguration, createObjectMapper, getConfiguration, handleRequest
-
Constructor Details
-
ManyAsyncChildContextExample
public ManyAsyncChildContextExample()
-
-
Method Details
-
handleRequest
public ManyAsyncChildContextExample.Output handleRequest(ManyAsyncChildContextExample.Input input, DurableContext context) Description copied from class:DurableHandlerHandle the durable execution.- Specified by:
handleRequestin classDurableHandler<ManyAsyncChildContextExample.Input,ManyAsyncChildContextExample.Output> - Parameters:
input- User inputcontext- Durable context for operations- Returns:
- Result
-