Closed drc-infinyon closed 1 month ago
Productionize - https://github.com/infinyon/http-sink-prototype.
The sink connector must have
Official Infinyon HTTP Sink connector
HTTP sink connector reads records from data streaming and generates an HTTP
Supports HTTP/1.0, HTTP/1.1, HTTP/2.0 protocols.
See docs here.
This is an example of simple connector config file:
# config-example.yaml meta: version: 0.1.0 name: my-http-sink type: http-sink topic: http-sink-topic http: endpoint: "http://127.0.0.1/post" headers: - "Authorization: token MySecretToken" - "Cache-Control: no-cache"
Fluvio HTTP Sink Connector supports Transformations. Records can be modified before sending to endpoint.
The previous example can be extended to add extra transformations to outgoing records:
# config-example.yaml meta: version: 0.1.0 name: my-http-sink type: http-sink topic: http-sink-topic http: endpoint: "http://127.0.0.1/post" headers: - "Authorization: token MySecretToken" - "Cache-Control: no-cache" transforms: - uses: infinyon/jolt@0.1.0 with: spec: - operation: shift spec: "result": "text"
In this case, additional transformation will be performed before records are sent the http endpoint. A json field called result will be renamed to text.
result
text
Read more about JSON to JSON transformations.
Sink is on hub, closing
$ fluvio hub conn list CONNECTOR Visibility infinyon/http-sink@0.2.11 public ...
Productionize - https://github.com/infinyon/http-sink-prototype.
The sink connector must have
HTTP Sink Connector
Official Infinyon HTTP Sink connector
Sink Connector
HTTP sink connector reads records from data streaming and generates an HTTP
Supports HTTP/1.0, HTTP/1.1, HTTP/2.0 protocols.
See docs here.
Configuration
Usage Example
This is an example of simple connector config file:
Transformations
Fluvio HTTP Sink Connector supports Transformations. Records can be modified before sending to endpoint.
The previous example can be extended to add extra transformations to outgoing records:
In this case, additional transformation will be performed before records are sent the http endpoint. A json field called
result
will be renamed totext
.Read more about JSON to JSON transformations.