Skip to content

Conversation

@sswguo
Copy link
Member

@sswguo sswguo commented Dec 9, 2024

We plan to integrate this as a sidecar to the mw pipeline, and have to slim the image to avoid the performance issue when download the image each time for mw pipeline running. We can do this from app level and image level, this PR is for app level, I found two big deps, one is quarkus-opentelemetry and another one is infinispan.

@sswguo sswguo requested review from ligangty and ruhan1 December 9, 2024 06:28
Copy link
Contributor

@ruhan1 ruhan1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

cacheManager.defineConfiguration( named, new ConfigurationBuilder().build() );
return cacheManager.getCache(named, Boolean.TRUE);
Cache<String, String> cache = Caffeine.newBuilder()
.expireAfterAccess(15, TimeUnit.MINUTES)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we set a maximumsize for the cache to vaoid potential OOM issue?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, good point, just in case.

Copy link
Member

@ligangty ligangty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sswguo sswguo merged commit 708a413 into Commonjava:ubi9 Dec 9, 2024
1 check passed
@ligangty
Copy link
Member

ligangty commented Dec 9, 2024

BTW, seems caffeine has quarkus extentions here: https://quarkus.io/extensions/io.quarkus/quarkus-caffeine/?tab=docs

@sswguo
Copy link
Member Author

sswguo commented Dec 9, 2024

https://quarkus.io/extensions/io.quarkus/quarkus-caffeine/?tab=docs

Cool, seems it's quite clean as the follows. I will check again and ref it.

[INFO] +- io.quarkus:quarkus-caffeine:jar:3.6.9:compile
[INFO] |  \- com.github.ben-manes.caffeine:caffeine:jar:3.1.5:compile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants