Skip to content

Improvement: improve polling mechanism#170

Merged
wangyb-A merged 1 commit intomainfrom
improvement/polling
Mar 7, 2026
Merged

Improvement: improve polling mechanism#170
wangyb-A merged 1 commit intomainfrom
improvement/polling

Conversation

@wangyb-A
Copy link
Copy Markdown
Contributor

@wangyb-A wangyb-A commented Mar 6, 2026

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Issue Link, if available

close #82

Description

  • Refactored the jitter
  • Add backoff rate and jitter to config
  • Implement backoff and jitter logic for polling interval
  • Added a flag for internal polling, jitter and backoff will not be applied if we want fixed polling interval (e.g. for wait operations)

Demo/Screenshots

Checklist

  • I have filled out every section of the PR template
  • I have thoroughly tested this change

Testing

Unit Tests

Have unit tests been written for these changes? Yes

Integration Tests

Have integration tests been written for these changes? Yes

Examples

Has a new example been added for the change? (if applicable) Yes

@wangyb-A wangyb-A force-pushed the improvement/polling branch from 87f4a17 to 7a5e795 Compare March 6, 2026 19:24
@wangyb-A wangyb-A marked this pull request as ready for review March 6, 2026 19:28
Comment thread sdk/src/main/java/software/amazon/lambda/durable/DurableConfig.java Outdated
Comment thread sdk/src/main/java/software/amazon/lambda/durable/execution/CheckpointBatcher.java Outdated
@zhongkechen
Copy link
Copy Markdown
Contributor

And also please follow up to add some examples or integration test cases if they're not included in this one.

@wangyb-A wangyb-A force-pushed the improvement/polling branch 2 times, most recently from ecc92ed to 6628356 Compare March 6, 2026 22:24
@wangyb-A wangyb-A force-pushed the improvement/polling branch from 6628356 to f0b42ac Compare March 6, 2026 23:58
- Refactor jitter
- Add jitter, polling interval, backoff rate and max interval
- unit tests
- example
@wangyb-A wangyb-A force-pushed the improvement/polling branch from f0b42ac to 7fd0053 Compare March 7, 2026 00:02
@wangyb-A wangyb-A merged commit a178ea8 into main Mar 7, 2026
7 checks passed
@zhongkechen zhongkechen deleted the improvement/polling branch March 11, 2026 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Improvement]: Improve the improved polling mechanism

2 participants