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/docs/reactive-commons/8-serving-async-queries.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ As the model of queries is direct, a consumer always can send queries to the ser
38
38
39
39
### Wildcards
40
40
41
-
You may need to handle variable querie names that have the same structure, in that case you can specfy a pattern with '*' wildcard, for example:
41
+
You may need to handle variable queries names that have the same structure, in that case you can specfy a pattern with '*' wildcard, for example:
42
42
43
43
```java
44
44
@Configuration
@@ -60,7 +60,7 @@ There is a concept introduced in queries that cannot be resolved locally and may
60
60
61
61
- A consumer application called APP1 make an async query to an application called APP2 (with horizontal scaling).
62
62
- an instance A of the APP2 receives the query and stores a reference to respond later.
63
-
- When response is fullfilled, an external source makes an HTTPS Call to an endpoint of an instance of APP2 but it can be diferent to the instance A, for example can be the instance B.
63
+
- When response is fulfilled, an external source makes an HTTPS Call to an endpoint of an instance of APP2 but it can be diferent to the instance A, for example can be the instance B.
64
64
- The instance B of APP2 queries for the saved reference and uses DirectAsyncGateway to answer the pending query to the application APP1.
65
65
66
66
This scenario can be resolved with ReactiveCommons by using the next resources:
@@ -106,7 +106,7 @@ When some external source notifies our APP2 instance with the answer we should f
106
106
@RequiredArgsConstructor
107
107
@EnableDirectAsyncGateway
108
108
publicclassReactiveDirectAsyncGateway {
109
-
privatefinalDirectAsyncGateway gateway; // Auto injectec bean created by the @EnableDirectAsyncGateway annotation
109
+
privatefinalDirectAsyncGateway gateway; // Auto injected bean created by the @EnableDirectAsyncGateway annotation
110
110
111
111
publicMono<Void>replyDelegate(StringcorrelationId, Objectresponse/*change for proper model*/) {
0 commit comments