Skip to content

Introduce services#5

Merged
bergundy merged 1 commit intonexus-rpc:mainfrom
bergundy:services
May 2, 2024
Merged

Introduce services#5
bergundy merged 1 commit intonexus-rpc:mainfrom
bergundy:services

Conversation

@bergundy
Copy link
Contributor

After internal discussions and review for adding Nexus APIs into the Temporal Go SDK it was decided that "Service" should be a well-defined Nexus concept.
The original design was more free-form and left this concept out.
Services are an important concept in Nexus, modeled after gRPC services.
Service consumers will want to browse for services by functionality and decoupling the service from the endpoint in which it is served on, allows for better discoverability.

@bergundy bergundy merged commit b879be4 into nexus-rpc:main May 2, 2024
@bergundy bergundy deleted the services branch May 2, 2024 18:53
bergundy added a commit to nexus-rpc/sdk-go that referenced this pull request May 2, 2024
Make adjustments based on the spec changes mentioned here:
nexus-rpc/api#5
bergundy added a commit to temporalio/temporal that referenced this pull request May 9, 2024
## What changed?

- Refactored Nexus Registry code to merge incoming and outgoing into one
registry
- Added separate concept of "endpoints" - which is roughly analogous to
what was previously called "services"
- Upgraded the Nexus Go SDK and API dependencies accordingly
- Command handler interface was modified to accept a context given new
requirements
- Note that invoking a worker endpoint is not yet supported, there will
be some minor restructuring required to enable that
- Requires this unmerged API PR
temporalio/api#403. The two PRs should be merged
together.
## Why?

Part of late redesign. See also nexus-rpc/api#5

## How did you test it?

Modified existing and added new tests.
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.

2 participants