Springboot NexusClient and NexusServiceClient<T> support for easier, correct SANO usage
Mantenedores costumam responder em até 2 dias
@Quinn-With-Two-Ns já está trabalhando nisso.
Desde 23/10/2026.
- #3158 de @Quinn-With-Two-Ns — aberto
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 35/100
- Tipo de issue
- Funcionalidade
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- java, spring-boot
- Domínio
- backend
Direção de pesquisa
Start with the Spring Boot autoconfiguration and multiple-namespace support referenced in the issue, then trace how workflow clients are configured and exposed as beans. Determine how NexusClient and NexusServiceClient<T> should fit that configuration, including non-root namespaces; done means the requested client types can be injected with the described aliases and service configuration.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Is your feature request related to a problem? Please describe.
Guidance in javadoc for NexusClient is Client for managing standalone Nexus operation executions. Obtain an instance via newInstance(WorkflowServiceStubs) or newInstance(WorkflowServiceStubs, NexusClientOptions). Do not create this object per request; share it for the lifetime of the process.
[here])https://www.javadoc.io/doc/io.temporal/temporal-sdk/latest/io/temporal/client/NexusClient.html).
Describe the solution you'd like
First improvement
Lifestyle correctness guidance like that should be made simpler with Spring so I can nexusClient in my controller just like I can workflowClient.
We should support this across all namespaces though using the nice "non-root" namespace config support. It is Nexus, after all, so let me call across Namespaces :) .
spring.temporal:
namespaces:
# I have a couple services inside my `apps` Namespace I want to use
- namespace: apps
alias: apps
nexus-service-clients:
- alias: apps-v1
endpoint: oms-apps-v1
service: com.acme.oms.services.AppsService
- alias: support-v1
endpoint: oms-support-v1
service: com.acme.oms.services.SupportService
// my REST Controller
// Use @Qualifier since non-root referencing alias
public AppsController(@Qualifier("apps-v1NexusClient") NexusClient appsNexusClient) {
this.appsNC = appsNexusClient;
}
Customization for options (interceptors,dataconverter, etc) can follow the existing path for doing such things with workflow client...ideally we could do this in configuration directly but the requirement to code those a shortcoming that already exists in our SB integration so not necessarily part of this.
Second improvement
We can do better than this though I think and support a nexus-service-clients per client so I can do something like :
spring.temporal:
namespaces:
# I have a couple services inside my `apps` Namespace I want to use
- namespace: apps
alias: apps
nexus-service-clients:
- alias: apps-v1
endpoint: oms-apps-v1
service: com.acme.oms.services.AppsService
- alias: support-v1
endpoint: oms-support-v1
service: com.acme.oms.services.SupportService
// my REST Controller
// No @Qualifier needed but I could do it with `alias` I guess
public SupportController(NexusServiceClient<SupportService> supportSvc) {
this.supportSvc = supportSvc;
}
Describe alternatives you've considered
Roll my own @Bean but I want it to be more approachable!
Additional context
SANO is here, let's make it dead simple to integrate All The Things!
- Linguagem predominante
- Java
- Estrelas
- 441
- Forks
- 266
- Merge médio
- 5d 21h
- PRs com merge (30d)
- 19
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de temporalio/sdk-java
-
enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
temporalio/sdk-java#1825 ·
Mantenedores costumam responder em até 2 dias
-
Buffered signals are delivered again when another handler is registeredTalvez já em andamento @sangkyoonnam assumiu hoje. Abertabug
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 51/100
temporalio/sdk-java#3189 ·
Mantenedores costumam responder em até 2 dias
-
Skipped mutableSideEffect leaks an empty RecordMarker command after a full replay, and the workflow task fails on every retryTalvez já em andamento @Quinn-With-Two-Ns assumiu há 13 dias. Aberta
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 52/100
temporalio/sdk-java#3163 · 3 comentários · 1 responsável ·
Mantenedores costumam responder em até 2 dias
-
Add Spring Boot auto-configuration for standalone ActivityClientTalvez já em andamento @Quinn-With-Two-Ns assumiu há 13 dias. Aberta
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 35/100
temporalio/sdk-java#3146 · 2 comentários · 1 responsável ·
Mantenedores costumam responder em até 2 dias
-
Proposal: handle SIGTERM by default to initiate graceful worker shutdownTalvez livre de novo @eamsden assumiu há 28 dias e não há nenhum pull request aberto. Aberta
temporalio/sdk-java#3135 · 1 comentário · 1 responsável ·
Mantenedores costumam responder em até 2 dias
Todas as issues de temporalio/sdk-java
Issues semelhantes
-
hermes-queue
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 85/100
chrisalunlloyd2-sudo/mindpalace#337 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
ucsb-cs156/proj-frontiers#844 ·
-
Update spring-ldap to 4.0.7Abertatype: dependency-upgrade
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 76/100
spring-projects/spring-security#20057 ·
Mantenedores costumam responder em até 1 dia
-
Spark benchmarks crash with `[INVALID_DRIVER_MEMORY]` on JVMs whose default heap is below Spark's ~450 MB minimumTalvez já em andamento @sendaoYan assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 79/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
moquette-io/moquette#980 ·