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: modules/concept-docs/pages/best-practices.adoc
+2-11Lines changed: 2 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -106,17 +106,8 @@ Advanced zone aware....
106
106
107
107
// ....this paragraph different for each SDK.
108
108
109
-
Choosing between the blocking, asynchronous, and reactive APIs for the Scala SDK is partly bound up with how (and where) you want to handle exceptions.
110
-
111
-
* Synchronous operations are blocking, and return a Scala `Try` object.
112
-
This contains either the result or a _Throwable_ exception,
113
-
which can be pattern matched over (using `flatMap` in more complex cases).
114
-
* The asynchronous API returns Scala `Future`, representing the execution of an asynchronous task and the promise of a future result.
115
-
An `ExecutionContext` must be provided, to give a thread pool for handling whatever is returned.
116
-
* The reactive API is a more natural fit for network-aware, fault tolerant programs,
117
-
and will provide full back pressure for streaming results from large {sqlpp} or Search queries.
118
-
119
-
See the xref:howtos:concurrent-async-apis.adoc[Async & Reactive APIs page] for further discussion and practical examples.
109
+
We recommend using the reactive API over the `CompletableFuture` counterpart.
110
+
See the xref:howtos:concurrent-async-apis.adoc[Async & Reactive APIs page] for discussion and practical examples.
0 commit comments