Skip to content

Commit c0909ab

Browse files
Update basics.md
1 parent e319015 commit c0909ab

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

content/microservices/basics.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,7 @@ export interface RequestContext<T = any> {
349349

350350
The `data` property is the message payload sent by the message producer. The `pattern` property is the pattern used to identify an appropriate handler to handle the incoming message.
351351

352-
353-
### Handling timeouts
352+
#### Handling timeouts
354353

355354
In distributed systems, sometimes microservices might be down or not available. To avoid infinitely long waiting, you can use Timeouts. A timeout is an incredibly useful pattern when communicating with other services. To apply timeouts to your microservice calls, you can use the `RxJS` timeout operator. If the microservice does not respond to the request within a certain time, an exception is thrown, which can be caught and handled appropriately.
356355

0 commit comments

Comments
 (0)