Skip to content

Commit 4ffb5d9

Browse files
docs(microservices) Update content/microservices/timeout.md
Co-authored-by: John Biundo <[email protected]>
1 parent d8207d7 commit 4ffb5d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/microservices/timeout.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
### Timeout
22

3-
Sometimes, microservices are down or not available. For such cases, a timeout is required. If the microservice does not respond to the request within a certain time, an Exception is thrown, which can be caught and an error message will be displayed.
3+
Sometimes, microservices are down or not available. You can handle these cases using the `RxJS` timeout operator in the call. If the microservice does not respond to the request within a certain time, an Exception is thrown, which can be caught and handled appropriately.
44

55
To solve this problem you have to install [rxjs](https://github.com/ReactiveX/rxjs) package:
66

@@ -30,4 +30,4 @@ this.client
3030
After 5 seconds, if microservice isn't responding, it will throw an error:
3131
```bash
3232
[Nest] 17544 - 05/24/2020, 8:08:27 AM [ExceptionsHandler] Timeout has occurred +5009ms
33-
```
33+
```

0 commit comments

Comments
 (0)