mirror of https://github.com/dapr/docs.git
				
				
				
			Merge pull request #3779 from shruthiragu/update-app-port
Update app port
This commit is contained in:
		
						commit
						0accc68dee
					
				|  | @ -137,7 +137,7 @@ Refer [api spec]({{< ref "actors_api.md#invoke-reminder" >}}) for more details. | |||
| 
 | ||||
| ## Error handling | ||||
| 
 | ||||
| When an actor's method completes successfully, the runtime will contineu to invoke the method at the specified timer or reminder schedule. However, if the method throws an exception, the runtime catches it and logs the error message in the Dapr sidecar logs, without retrying.  | ||||
| When an actor's method completes successfully, the runtime will continue to invoke the method at the specified timer or reminder schedule. However, if the method throws an exception, the runtime catches it and logs the error message in the Dapr sidecar logs, without retrying.  | ||||
| 
 | ||||
| To allow actors to recover from failures and retry after a crash or restart, you can persist an actor's state by configuring a state store, like Redis or Azure Cosmos DB.  | ||||
| 
 | ||||
|  |  | |||
|  | @ -235,7 +235,7 @@ Verify you have the following files included in the service directory: | |||
| Run the `order-processor` subscriber service alongside a Dapr sidecar. | ||||
| 
 | ||||
| ```bash | ||||
| dapr run --app-port 5001 --app-id order-processing --app-protocol http --dapr-http-port 3501 --resources-path ../../../components -- npm run start | ||||
| dapr run --app-port 5002 --app-id order-processing --app-protocol http --dapr-http-port 3501 --resources-path ../../../components -- npm run start | ||||
| ``` | ||||
| 
 | ||||
| In the `order-processor` subscriber, we're subscribing to the Redis instance called `orderpubsub` [(as defined in the `pubsub.yaml` component)]({{< ref "#pubsubyaml-component-file" >}}) and topic `orders`. This enables your app code to talk to the Redis component instance through the Dapr sidecar. | ||||
|  | @ -706,7 +706,7 @@ go build . | |||
| Run the `order-processor` subscriber service alongside a Dapr sidecar. | ||||
| 
 | ||||
| ```bash | ||||
| dapr run --app-port 6002 --app-id order-processor-sdk --app-protocol http --dapr-http-port 3501 --resources-path ../../../components -- go run . | ||||
| dapr run --app-port 6005 --app-id order-processor-sdk --app-protocol http --dapr-http-port 3501 --resources-path ../../../components -- go run . | ||||
| ``` | ||||
| 
 | ||||
| In the `order-processor` subscriber, we're subscribing to the Redis instance called `orderpubsub` [(as defined in the `pubsub.yaml` component)]({{< ref "#pubsubyaml-component-file" >}}) and topic `orders`. This enables your app code to talk to the Redis component instance through the Dapr sidecar. | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue