Skip to main content
Announcements
Qlik and Talend Support Cases are now opened in the same place.

Talend ESB: Use tHash components in ESB Runtime

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
TalendSolutionExpert
Contributor II
Contributor II

Talend ESB: Use tHash components in ESB Runtime

Last Update:

Mar 25, 2024 3:01:25 AM

Updated By:

Shicong_Hong

Created date:

Apr 1, 2021 6:15:51 AM

Question

Is it safe to use the tHashOutput and tHashInput components in SOAP/REST services or in Jobs called by routes?

Answer

tHashxxx components are not thread-safe and are not supported in Data Services. They are designed to store/keep data/objects in memory and are not recommended for use in the JVM process of the runtime.

Comments
jeoste
Creator
Creator

Hello,

If tHash are not thread safe, what other alternative do we have to store data while esb job, real-time data, are running ?

Using cache offers high speed for reading and manipulating the data, efficient solution, but the alternative could be write data on a fileOutput ?

Shicong_Hong
Support
Support

Hello @jeoste 

tHash and tBuffer components are not supported in services Job as they are not thread safe. An alternation is to use the tHSQL components ability to create an in-memory database 'on the fly', but this can have a performance impact and increase the job complexity.

If you tell us more information about the use-case we could give better help.

Regards

Shicong

Version history
Last update:
‎2024-03-25 03:01 AM
Updated by: