4
4
This library makes it easy to insert data into [ QuestDB] ( https://questdb.io/ ) .
5
5
6
6
This client library implements the [ InfluxDB Line Protocol] (
7
- https://questdb.io/docs/reference/api/ilp/overview/ ) (ILP) over TCP.
7
+ https://questdb.io/docs/reference/api/ilp/overview/ ) (ILP) over TCP or HTTP .
8
8
9
9
* Implementation is in Rust, with no additional
10
10
[ run-time or link-time dependencies] ( doc/BUILD.md#pre-requisites-and-dependencies )
@@ -16,21 +16,21 @@ https://questdb.io/docs/reference/api/ilp/overview/) (ILP) over TCP.
16
16
17
17
## Insertion Protocols Overview
18
18
19
- Inserting data into QuestDB can be done via one of three protocols.
19
+ Inserting data into QuestDB can be done in several ways.
20
+
21
+ This library supports ILP/HTTP (default-recommended) and ILP/TCP (specific
22
+ streaming use cases).
20
23
21
24
| Protocol | Record Insertion Reporting | Data Insertion Performance |
22
25
| -------- | -------------------------- | -------------------------- |
23
- | [ ILP] ( https://questdb.io/docs/reference/api/ilp/overview/ ) | Errors in logs; Disconnect on error | ** Best** |
26
+ | ** [ ILP/HTTP] ( https://questdb.io/docs/reference/api/ilp/overview/ ) ** | Transaction-level (on flush) | ** Excellent** |
27
+ | [ ILP/TCP] ( https://questdb.io/docs/reference/api/ilp/overview/ ) | Errors in logs; Disconnect on error | ** Best** (tolerates higher latency networks) |
24
28
| [ CSV Upload via HTTP] ( https://questdb.io/docs/reference/api/rest/#imp---import-data ) | Configurable | Very Good |
25
29
| [ PostgreSQL] ( https://questdb.io/docs/reference/api/postgres/ ) | Transaction-level | Good |
26
30
27
- This library implements the ** ILP protocol** and mitigates the lack of confirmation
28
- and error reporting by validating data ahead of time before any data is sent
29
- to the database instance.
30
-
31
- For example, the client library will report that a supplied string isn't encoded
32
- in UTF-8. Some issues unfortunately can't be caught by the library and require
33
- some [ care and diligence to avoid data problems] ( doc/CONSIDERATIONS.md ) .
31
+ Server errors are only reported back to the client for ILP/HTTP.
32
+ See the [ flush troubleshooting] ( doc/CONSIDERATIONS.md ) docs for more details on
33
+ how to debug ILP/TCP.
34
34
35
35
For an overview and code examples, see the
36
36
[ ILP page of the developer docs] ( https://questdb.io/docs/develop/insert-data/#influxdb-line-protocol ) .
0 commit comments