Make Jira Listeners Asynchronous

Hi All,

Is there any way that we can make listners async? I found https://bitbucket.org/atlassianlabs/async-events-tutorial and just wanted to check whether any other way.

Thanks,

Ishan

3 answers

@AsynchronousPreferred mentioned in the tutorial is probably your best choice. I don't see any reasons not to use it, it's very simple. As mentioned in this answer if you have an originally synchronous event, you can then re-publish it via EventPublisher creating your own Asynchronous Event.

Aren't JIRA listeners already asynchronous? Anyway, you can always create a new execution thread and let it do the rest of the work to avoid blocking the caller of your listener handler.

New execution thread will be spawned by your own code instead of re-using JIRA's ThreadPool. More code, more bugs (e.g. memory leaks because of unstopped threads).

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

77 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you