Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I'm considering developing a custom component for Data Integration. Are there any guidelines for custom components if I want to upload them to Talend Exchange?
Specifically, can I make a component which will send a file to a server where I can process it with a propietary algorithm and return the data? Or is including the algorithm in the component itself the only allowed method?
@siva227 in the "kit" we try to avoid any representation which can be "local" and we enforce to go through "Record" (or JsonObject) abstraction to try to guarantee that. It is also not possible to send a stream since the processing can be distributed and it wouldn't work. However, nothing prevents you to send a record describing the file (caricaturally {filename: /path/to/file}) and have a http component able to read from the file path in the record to do a post.
Thanks @rmannibucau. I wanted to include the post part within the component so that users wouldn't have add any more components. To clarify, using a http component is the only way to send a file? It can't be done from within the custom component?
Hi @siva227 ,
there is a http client in the kit out of the box ([1]) so you can send it directly or write an output component doing that (likely better).
[1] https://talend.github.io/component-runtime/main/1.1.13/services-built-in.html#httpclient_usage
Thanks for the detailed guide and description.
Best regards, My Boy Apk