Forums

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

How to realize cache

Andrii Strelka March 22, 2018

In order to reduce number of requests  from JIRA while auto-assignment, it would be reasonable to keep 30 minutes cache stored locally.  JIRA post-function will query local file instead of making new request. How to realize it?

1 answer

0 votes
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 22, 2018

Jira stores all data in lucene index, that is why I can not see a reason for you to make your own cache. Or what kind of requests do you mean?

Andrii Strelka March 22, 2018

Customer want It) 

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 22, 2018

Nope.

The customer rarely knows what they really want.  They often tell you stuff that is totally wrong.

A good service provider will check that the customer really wants.  So. 

  • What is the end goal? 
  • You've said "in order to reduce the number of request from Jira while auto-assignment", which begs the questions
    • What requests from Jira?
    • What auto-assignment?
    • Why do you think you need to reduce the numbers?
  • Why does the customer think they want this? 
Andrii Strelka March 22, 2018

Request - via REST API we get the oncall user (from Pager Duty)
Auto-assignment - we assign issues for user that oncall now

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 22, 2018

Ok.

  • What is the end goal? 
  • Why do you think you need to reduce the numbers?
  • Why does the customer think they want this? 
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 22, 2018

There is a built in cache in Jira. You can use it. Here is more info:

https://developer.atlassian.com/server/confluence/how-do-i-cache-data-in-a-plugin/

Or you can use such products like Redis and so on.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events