Four Stars

how to asynchronously launch a Talend Job

Hello Experts,

We have a Large Batch job that run sequence of database calls for over 30mins. We have converted this to Rest Service using ESB. 

Now the issue is, I want to send the rest response with some "success Launch" message immediately without the need of waiting for the entire SubJob completion, but I'm receiving Rest Response in postman only after completion of entire Job.

Can I create an asynchronous Rest Service in Talend?

Thanks In Advance. 

 

Regards,

Mohan

 

6 REPLIES
Seven Stars

Re: how to asynchronously launch a Talend Job

Hi mbondada,

 

By using tRestresponse component we can send response , after receiving request.

So we have to log request in a file or  temp. 

Thanks & Regards
A Ravi Kumar
Mobile Number : +91 852-762-1083
Email-id : a.ravikumar104@gmail.com
Skype Id : ammanannaravikumar
Four Stars

Re: how to asynchronously launch a Talend Job

Hi Ravi, 

I want to create a process some thing like the one in attached screenshot.

I don't want to log request in a file for further processing. 

I want to receive request details, then respond back with "OK" message and asynchronously launch the SubJob.

 

Thanks for the Reply.

Seven Stars

Re: how to asynchronously launch a Talend Job

Hi mbondada,

 

Please have attached screenshot of the job flow.

flow.PNG

Thanks & Regards
A Ravi Kumar
Mobile Number : +91 852-762-1083
Email-id : a.ravikumar104@gmail.com
Skype Id : ammanannaravikumar
Four Stars

Re: how to asynchronously launch a Talend Job

Hi Ravi,

 

I redesigned this way, but still the job taking same amount of time.

 

rest_aync1.PNG


@RaviKumarwrote:

Hi mbondada,

 

Please have attached screenshot of the job flow.

flow.PNG


 

 

Fifteen Stars

Re: how to asynchronously launch a Talend Job

Do you have the Enterprise Edition? If so you can use the MetaServelt API to trigger a job in the TAC and get an immediate response to say the job has been triggered. This will allow your immediate response in your service.  

Rilhia Solutions
Four Stars

Re: how to asynchronously launch a Talend Job

We are using the free edition, not enterprise edition. Thanks for the reply.