What is the best method to organize a queue ?

cancel
Showing results for 
Search instead for 
Did you mean: 
iceja
Active Member II

What is the best method to organize a queue ?

Hi!

I have several parallel long-duration tasks executing in separate transactions and them eate all the memory. I need to organize a queue to run them serially, please tell me how to do it properly? Should I create a Scheduled job which listern for somkind of queue, or what?

thank you!

1 Reply
abhinavmishra14
Moderator
Moderator

Re: What is the best method to organize a queue ?

Yes, you can make use of scheduled jobs which can process the job queue either one by one or in batches depending on your infrastructure setup.

There are two ways you can setup queuing mechanism: 

1- Make use of ActiveMQ 

2- Use repository based job queue (basically creating contentless nodes which job data in the repository, process them and delete/retain (for reporting) after job is processed)

Here is an example of creating scheduled jobs:

https://hub.alfresco.com/t5/alfresco-content-services-blog/creating-scheduled-job-in-alfresco/ba-p/2...

https://javaworld-abhinav.blogspot.com/2015/08/creating-scheduled-job-in-alfresco.html

https://docs.alfresco.com/content-services/6.1/develop/repo-ext-points/scheduled-jobs/

~Abhinav
(ACSCE, AWS SAA-C02, GAIQ)