tigerbeetle-node 0.16.68 → 0.16.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -1
- package/dist/bin/aarch64-linux-gnu/client.node +0 -0
- package/dist/bin/aarch64-linux-musl/client.node +0 -0
- package/dist/bin/aarch64-macos/client.node +0 -0
- package/dist/bin/x86_64-linux-gnu/client.node +0 -0
- package/dist/bin/x86_64-linux-musl/client.node +0 -0
- package/dist/bin/x86_64-macos/client.node +0 -0
- package/dist/bin/x86_64-windows/client.node +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -65,7 +65,7 @@ ID and replica addresses are both chosen by the system that
|
|
|
65
65
|
starts the TigerBeetle cluster.
|
|
66
66
|
|
|
67
67
|
Clients are thread-safe and a single instance should be shared
|
|
68
|
-
between multiple concurrent tasks. This allows events to be
|
|
68
|
+
between multiple concurrent tasks. This allows events to be
|
|
69
69
|
[automatically batched](https://docs.tigerbeetle.com/coding/requests/#batching-events).
|
|
70
70
|
|
|
71
71
|
Multiple clients are useful when connecting to more than
|
|
@@ -821,3 +821,13 @@ const transfer_errors = await client.createTransfers(transfers);
|
|
|
821
821
|
// Since it is a linked chain, in case of any error the entire batch is rolled back and can be retried
|
|
822
822
|
// with the same historical timestamps without regressing the cluster timestamp.
|
|
823
823
|
```
|
|
824
|
+
|
|
825
|
+
## Timeouts And Cancellation
|
|
826
|
+
|
|
827
|
+
The Client retries indefinitely and doesn't impose any per-request timeout. Cancellation is
|
|
828
|
+
provided as a mechanism, and the specific cancellation policy is left to the
|
|
829
|
+
application. A Client instance can be closed at any time. On close, all in-flight
|
|
830
|
+
requests are canceled and return an error to the caller. Even if an error is returned,
|
|
831
|
+
a request might still be processed by the TigerBeetle server.
|
|
832
|
+
[Reliable transaction submission](https://docs.tigerbeetle.com/coding/reliable-transaction-submission/)
|
|
833
|
+
explains how to make transfers retry-proof using IDs for end-to-end idempotency.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|