Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

is Async Event Handling possible in Confluence?

Angel Ruiz
Contributor
February 4, 2019

Hi there,

Looking at the Javadocs I have seen the annotation @AsynchronousPreferred. After performing some tests it seems it is working as expected, but I cannot find a single piece of official documentation and forum post mentioning it in the context of implementing a Confluence app.

In fact the documentation emphasizes that "Confluence events are currently processed synchronously"

Can anyone confirm the annotation above is indeed how you do async event handling in Confluence please?

Cheers,

1 answer

0 votes
Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 5, 2019

Angel,

I'm not a developer and thus not terribly familiar with this process, but mentions of the annotation in threads on jira.atlassian.com mention that you should mark specific events with the annotation. For example:

  • Mark with the com.atlassian.event.api.AsynchronousPreferred annotation, which will cause the event to be delivered on a separate thread, with proper transaction management.

I believe this should clarify things for you, but if not, please let us know what you're having trouble with, or perhaps reach out to our other Community, which is specific for development related questions:

Regards,

Shannon

Angel Ruiz
Contributor
February 5, 2019

Hi Shannon,

yes I know. I have even tested it and seems to be working as expected. I just wanted some short of official confirmation from Atlassian because apart for the Javadoc, there is no other source of information around this mechanism and I find it weird, because for certain scenarios it can be very handy.

Thanks for your attention!
Angel

Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 5, 2019

I'm just finding the information that I think you already looked at:

Is there any specific information you were looking to find out about it? I can try to find out for you.

Regards,

Shannon

Angel Ruiz
Contributor
February 5, 2019
Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 5, 2019

Thank you for clarifying that, Angel.

I submitted a documentation update request at ecosystem.atlassian.net. The case is 

  • DOCS-2711 Document AsynchronousPreferred usage in the context of an application

However, I believe you need to be logged in in order to see it.

If I hear any updates on this in the upcoming future, I'll let you know here, but feel free to reach out on the Developer Community as well and see if you can get information about it.

Regards,

Shannon

Angel Ruiz
Contributor
February 5, 2019

Thanks so much!

It seems I don't have permissions to see the Jira issue. I am logged in.

Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 5, 2019

Angel,

Thank you for checking. It seems then perhaps that any documentation feedback that gets sent from the page you linked goes to an internal only request.

At any rate, I'll keep an eye on it, and provided they make a response to me in the next week or so, I'll follow-up with you here. 

If you find anything out from the Developer Community, you can come here to let us know as well! I'm sure other users are also interested in using this feature.

Regards,

Shannon

Akash Hajeri May 27, 2019

I cannot view document mentioned here.

Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 27, 2019

Akash,

Thank you for letting me know about this. I've checked the links provided in this thread, but they all appear to be loading for me. Of course, this could be because I am within the Atlassian network.

Could you tell me the URL of the exact document you are not able to load so I can test it externally?

Regards,

Shannon

Akash Hajeri May 27, 2019

Hi Shannon,

I was trying to access https://ecosystem.atlassian.net/browse/DOCS-2711 document to understand about AsynchronousPreferred usage. 

 

Try accessing from external network and it would fail.

Thanks and Regards,
Akash

Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 27, 2019

Hello Akash,

Thank you for clarifying. The documents mentioned in the article are the following:

The link at DOCS-2711 is not a document, but a ticket I created with our internal documentation team to update the existing documentation with further details. The project that ticket is currently in is locked to external access and has not yet been completed. This is why you are not able to load it. 

I myself am not familiar with the usage of that annotation, but you can feel free to raise a question at our Developer Community.

Best regards,

Shannon

Ibrahim Itani December 4, 2023

Hello @Angel Ruiz 

I'm trying to do some stuff in after issue update async in Jira

Can you assist

Thanks

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events