quarkusio / registry.quarkus.io

Quarkus Extension Registry application
https://registry.quarkus.io
Apache License 2.0
10 stars 11 forks source link

Use latest createdAt on metadata.xml #49

Closed gastaldi closed 2 years ago

gastaldi commented 2 years ago

This enables the service to run in more than 1 replica

gastaldi commented 2 years ago

I don't understand why CI freezes after running the AdminApiTest

aloubyansky commented 2 years ago

Do all the catalogs the registry provides share the same timestamp, which is the time the last extension or platform was updated? And now it's querying the database on every request?

gastaldi commented 2 years ago

Yeah, I know it's not the perfect solution but it works. I could cache it for a specific timeframe but I wouldn't know when to invalidate it if we're running on multiple replicas.

Another idea: maybe we could read that value from a ENV parameter and restart the app when the value changes, but I am not fully convinced in this strategy yet.

gastaldi commented 2 years ago

I'll give it more thought about it. Closing now