Expand my Community achievements bar.

SOLVED

How can I use multithreading concept in AEM?

Avatar

Level 1

I want to use the multithreading concept in AEM. How can I use this? 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 4

You might want to check https://sling.apache.org/documentation/bundles/apache-sling-commons-thread-pool.html 
In past sling scheduler has been the most common use case  https://sling.apache.org/documentation/bundles/scheduler-service-commons-scheduler.html 
And ff you need processing gurantee (especiallly if you are working with AEM as cloud), then you might want to take a look at Sling Jobs https://sling.apache.org/documentation/bundles/apache-sling-eventing-and-job-handling.html#jobs-guar... 
Hope this helps.

View solution in original post

4 Replies

Avatar

Level 8

@Kous1992 

Do you have a specific use case you are looking into?

 

You can check this blog post from Dan about concurrency pitfalls(this is an old blog post but I think it is still relevant) 

https://blogs.perficient.com/2017/12/05/2-common-concurrency-pitfalls-in-aem-and-how-to-avoid-them/

Avatar

Correct answer by
Level 4

You might want to check https://sling.apache.org/documentation/bundles/apache-sling-commons-thread-pool.html 
In past sling scheduler has been the most common use case  https://sling.apache.org/documentation/bundles/scheduler-service-commons-scheduler.html 
And ff you need processing gurantee (especiallly if you are working with AEM as cloud), then you might want to take a look at Sling Jobs https://sling.apache.org/documentation/bundles/apache-sling-eventing-and-job-handling.html#jobs-guar... 
Hope this helps.

Avatar

Administrator

@Kous1992 Did you find the suggestion helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!



Kautuk Sahni