External source
One simple way to write data into a Quix topic, is to use the prebuilt connector called External source
.
To use the External source
connector, step through the following procedure:
-
In the UI click on
Code Samples
in the left-hand sidebar. -
Search for
External source
. -
Click
Add external source
. -
Select the output topic that you want to publish data to.
-
Give your source a name.
-
Click
Add external source
. -
In the Pipeline view click the newly created source and the following is displayed:
-
For this example, select
HTTP API - JavaScript
. Code is generated for you that uses the Streaming Writer API (HTTP interface). -
Click the
Copy code
button to copy the code to your clipboard.
You can now paste the code into your JavaScript code, for example, your web browser client code. The code writes data into the Quix topic that you configured.
As you can see there are other options such as generating Curl code that can be run in your shell to also write data into Quix.
The code samples generated are meant to provide you with a starting point from which you can build your own solutions. They provide a convenient way to see how the API works.
Next steps
Further information can be found in the Streaming Writer API documentation.