[EXTDAM-318] Always store the region of a bucket if it is not cached Created: 25/Oct/21  Updated: 08/Nov/21  Resolved: 27/Oct/21

Status: Closed
Project: External DAMs
Component/s: None
Affects Version/s: 1.0.7
Fix Version/s: 1.0.8, 1.1.0, 1.2.0

Type: Improvement Priority: Neutral
Reporter: Jesus Alonso Assignee: Jesus Alonso
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
relation
is related to EXTDAM-322 DOC: extdam 1.0.8 urgent changelog Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Release notes required:
Yes
Date of First Response:

 Description   

getBucketRegion tries to obtain the region from:

  1. the regionsOfBuckets
  2. if it is not present in the cache, from S3

However, in the second case we are not updating the cache!

While for the asset tree the region is always present in the cache, this is not always true for the delivery endpoint, where we are seeing performance issues. Thus, we need to, when the region is not present in the cache, update it so future requests can use it.


Generated at Mon Feb 12 01:54:02 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.