Add temporal module: workflows, activities, retries, saga, signals, versioning, Spring Boot starter

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b5uEyg58znuchZ8C8i
This commit is contained in:
Ankur
2026-11-29 12:53:54 +05:30
co-authored by Claude Sonnet 5.5
commit dada6361ff
56 changed files with 1556 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
retry policy: initial 1s, coefficient 2.0, maximum attempts 4
== two transient failures, then success ==
fetchRate(USD/INR) attempt 1
fetchRate(USD/INR) attempt 2
fetchRate(USD/INR) attempt 3
result: USD/INR=83.21
workflow history spans 3 s (1 s + 2 s of backoff); wall clock under 5 s: true
== always failing: attempts exhausted ==
fetchRate(USD/INR) attempt 1
fetchRate(USD/INR) attempt 2
fetchRate(USD/INR) attempt 3
fetchRate(USD/INR) attempt 4
workflow failed: ActivityFailure -> ApplicationFailure: message='503 from rate service', type='java.lang.IllegalStateException', nonRetryable=false
== non-retryable ApplicationFailure ==
fetchRate(USD/INR) attempt 1
workflow failed: type=UnknownPair nonRetryable=true message=unknown currency pair USD/INR