Repository navigation
Running background JOB #14494
Unanswered
ehsantashkhisi
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
We have the requirement of running some background jobs that use services provided by Keycloak, there are multiple approaches to implement this. I just wanted to share it here and receive some feedback from the Keycloak team.
I can run a scheduler to run a job at a specific time using a scheduler within Keycloak itself, the downside of this approach is that the job will run in the same process as Keycloak, and this may consume some resources from the main application process.
The other approach is to run another instance of Keycloak only for the purpose of running the job at a specific time, it means we run an instance of Keycloak and run a specific job within that instance and when the job is finished we exit that process, I do not know how it can be achieved by Keycloak but the advantage is that we do not need to consume resources from the main process.
I need the Keycloak team's consultant, is it a good idea to use the second approach, what is the down side from your perspective? is this achievable in Keycloak?
All reactions