You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/develop/go/temporal-nexus.mdx
+48-51Lines changed: 48 additions & 51 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,27 +35,29 @@ This page shows how to do the following:
35
35
-[Make Nexus calls across Namespaces with a development Server](#nexus-calls-across-namespaces-dev-server)
36
36
-[Make Nexus calls across Namespaces in Temporal Cloud](#nexus-calls-across-namespaces-temporal-cloud)
37
37
38
-
## Run a development server with Nexus enabled {#run-the-temporal-nexus-development-server}
38
+
:::note
39
39
40
-
The first step in working with Temporal Nexus involves starting a Temporal server with Nexus enabled.
40
+
This documentation uses source code derived from the [Go Nexus sample](https://github.com/temporalio/samples-go/tree/main/nexus).
41
+
42
+
:::
43
+
44
+
## Run the Temporal Development Server with Nexus enabled {#run-the-temporal-nexus-development-server}
41
45
42
46
Prerequisites:
43
47
44
48
-[Install the latest Temporal CLI](https://docs.temporal.io/develop/go/core-application#run-a-development-server) (v1.3.0 or higher recommended)
45
49
-[Install the latest Temporal Go SDK](https://docs.temporal.io/develop/go/core-application#install-a-temporal-sdk)
46
50
(v1.33.0 or higher recommended)
47
51
48
-
### Start the Temporal Development Server {#start-the-temporal-development-server}
49
-
50
-
Start the Temporal Development Server.
52
+
The first step in working with Temporal Nexus involves starting a Temporal server with Nexus enabled.
51
53
52
54
```
53
55
temporal server start-dev
54
56
```
55
57
56
-
This command automatically starts the Web UI, creates the default Namespace, and uses an in-memory database.
58
+
This command automatically starts the Temporal development server with the Web UI, and creates the `default` Namespace. It uses an in-memory database, so do not use it for real use cases.
57
59
58
-
The Temporal Server should be available on `localhost:7233` and the Temporal Web UI should be accessible at [http://localhost:8233](http://localhost:8233).
60
+
The Temporal Web UI should now be accessible at [http://localhost:8233](http://localhost:8233), and the Temporal Server should now be available for client connections on `localhost:7233`.
59
61
60
62
## Create caller and handler Namespaces {#create-caller-handler-namespaces}
## Define the Nexus Service contract {#define-nexus-service-contract}
90
88
91
-
The Nexus Service contract can be in whatever form works best for your environment.
92
-
Each [Temporal SDK includes and uses a default Data Converter](https://docs.temporal.io/dataconversion), that encodes payloads in the following order: Null, Byte array, Protobuf JSON, and JSON.
93
-
In a polyglot environment, Protobuf and JSON are common choices. This example uses native Go types.
89
+
Defining a clear contract for the Nexus Service is crucial for smooth communication.
94
90
95
91
In this example, there is a service package that describes the Service and Operation names along with input/output types for caller Workflows to use the Nexus Endpoint.
96
92
93
+
Each [Temporal SDK includes and uses a default Data Converter](https://docs.temporal.io/dataconversion).
94
+
The default data converter encodes payloads in the following order: Null, Byte array, Protobuf JSON, and JSON.
95
+
In a polyglot environment, that is where more than one language and SDK is being used to develop a Temporal solution, Protobuf and JSON are common choices.
@@ -690,6 +687,6 @@ For **synchronous Nexus Operations** the following are reported in the caller's
690
687
691
688
## Learn more
692
689
693
-
-[Evaluate](/evaluate/nexus) why you should use Nexus and watch the [Nexus keynote and demo](https://youtu.be/qqc2vsv1mrU?feature=shared&t=2082).
690
+
-Read the high-level description of the [Temporal Nexus feature](/evaluate/nexus) and watch the [Nexus keynote and demo](https://youtu.be/qqc2vsv1mrU?feature=shared&t=2082).
694
691
- Learn how Nexus works in the [Nexus deep dive talk](https://www.youtube.com/watch?v=izR9dQ_eIe4) and [Encyclopedia](/nexus).
695
692
- Deploy Nexus Endpoints in production with [Temporal Cloud](/cloud/nexus).
0 commit comments