Skip to content

Commit e250dce

Browse files
async rec
1 parent 2983348 commit e250dce

1 file changed

Lines changed: 2 additions & 11 deletions

File tree

modules/concept-docs/pages/best-practices.adoc

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -106,17 +106,8 @@ Advanced zone aware....
106106

107107
// ....this paragraph different for each SDK.
108108

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.
120111

121112

122113

0 commit comments

Comments
 (0)