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: README.md
+17-15Lines changed: 17 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,8 @@
14
14
15
15
The client API documentation is written in standard Markdown and generated dynamically into C++ headers. You can find the full API overview in [docs/API.md](docs/API.md).
16
16
17
+
The public API follows the same object-oriented layout as the original Fluvio client: connect with `Fluvio` or `FluvioAdmin`, then call methods on the returned objects.
18
+
17
19
## Installation
18
20
19
21
You can install the client effortlessly without compiling the heavy Rust toolchain by using `vcpkg`.
Copy file name to clipboardExpand all lines: examples/README.md
+14-3Lines changed: 14 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,10 +12,10 @@ Before building the examples, ensure you have the following:
12
12
13
13
## What's Included?
14
14
15
-
We provide two simple applications to demonstrate the core features of the client:
15
+
We provide two simple applications to demonstrate the current object-oriented client API:
16
16
17
-
-**Producer (`producer.cpp`)**: Connects to the Fluvio cluster as an admin to ensure a topic named `example-topic` exists. It then creates a producer and sends a mock JSON payload representing sensor data.
18
-
-**Consumer (`consumer.cpp`)**: Connects to the Fluvio cluster, opens a stream on`example-topic`, and parses the incoming JSON data using`nlohmann::json`.
17
+
-**Producer (`producer.cpp`)**: Uses `FluvioAdmin::connect()`to ensure a topic named `example-topic` exists, then uses `Fluvio::connect()`and `client->topic_producer(...)` to send a JSON payload.
18
+
-**Consumer (`consumer.cpp`)**: Uses `Fluvio::connect()` and `client->consumer_stream(...)` to read from`example-topic`, then parses the incoming JSON data with`nlohmann::json`.
0 commit comments