cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Background Job Service - Asynchronous in BTP using Java

idefix
Participant
0 Likes
981

Hi,


I'm trying to build table export function and data synchronisation. I think the best way is to use background job (asynchronous Task)

In Java, I think we can use CompletableFuture.runAsync. Is this the best practice in BTP? Is there any service in BTP?

Something like redis and sidekiq. add the jobs in queue and execute each job.

Thank you.

Accepted Solutions (0)

Answers (2)

Answers (2)

idefix
Participant
0 Likes

Hi Simon,

Thank you for your answer.

I need asynchronous task queues. Do you know if Job scheduling service can manage queue? For example, which queue has higher priority than the other?

I have will an app with many process which should run in background asynchronously and immediately as soon as the resource available, for example: export, import data, send email, fetch api data. These process should happen not all at once. I don't need specific time (scheduled) to run these jobs.

About Redis, I am confused if this service still available? If I read the documentation, the service has been retired.

but in discovery page, the service is new

Thank you.

former_member194549
Contributor
0 Likes

Hi edwin_sendjaja34,
since I don't know which use case you want to cover exactly, here are a few thoughts:

If the export is to be triggered from a UI5 app, UI5 already provides functionality to export data here. Both an OData service and a REST service (JSON format) can be used here.

The Job Scheduler service can be used for the scheduled execution of batch jobs. This triggers defined jobs based on specified intervals, which can be executed in the background.

Redis is now also available as a hyperscaler option in the SAP BTP. In general, however, you can also bring along any other service, e.g. from AWS, Azure or GCP, and integrate it via a user-provided service (Link1, Link2).

Regards
Simon