temporalio / temporalio/sdk-java

Allow users to specify or influence RpcRetryOptions for all kinds of GrpcRetries

Open
#665 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Java
Stars
433
Forks
249
Avg merge
5d 6h
Merged PRs (30d)
26

Description

Temporal strives to provide reasonable defaults for Retry options.
Also, we try to not expose RpcRetryOptions because of how easy they are to misconfigure.
But in some cases, our default choices don't work and there is no one value that fits all use cases.
The initial retry period is an example of a property that requires very different values for

  • microservice orchestration usecase (we want to keep it really low)
  • more traditional workflow or batch processing usecase where we want to avoid a snowball effect of retries and we can afford to wait.

We should come up with some ability to influence/specify RpcRetryOptions for our users to allow them to tune Temporal for their specific use case, but keeping a balance with incapsulation and enforcing the retry options to be safe.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the existing GrpcRetries behavior and how RpcRetryOptions are currently kept from users. Identify the retry cases covered by the request and the safety constraints that must remain enforced. Done means users can influence retry settings for all kinds of gRPC retries without exposing unsafe or easily misconfigured defaults.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend-api-design, distributed-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.