aws / aws/aws-durable-execution-sdk-java
[Improve]: avoid suspension if next replay comes soon
- Dominant language
- Java
- Stars
- 28
- Forks
- 11
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 47
Description
### What would you like?
I would like to keep busy waiting and avoid suspension/replay overhead if the replay is going to happen soon, which includes the following scenarios:
- the next retry of a failed step operation
- next check of waitForCondition
- expiration of a wait operation
The busy waiting behavior should be customizable, by providing either
- a maximum busy wait period field in DurableConfig (default: 0, busy waiting is disabled), or
- a busy waiting strategy in DurableConfig, accepting Lambda's remaining invocation time and next replay time as parameters
### Possible Implementation
_No response_
### Is this a breaking change?
No
### Does this require an RFC?
No
### Additional Context
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.