Cache participant context configuration across transactions
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 45/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- java
- Ambito
- backend, performance
Direzione di ricerca
Start with ParticipantContextConfigImpl and the config service that writes configurations; review the existing per-transaction cache and the CEL expressions snapshot pattern mentioned in the issue. Check how reads, saves, and deletes interact with transactions and encrypted stored values. Done means a bounded, short-TTL cross-request cache reduces repeated lookups, local writes evict entries, and reads within a transaction remain consistent.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Feature Request
Cache participant context configuration across transactions, so that reading a participant's configuration doesn't cost a database query in every transaction.
Which Areas Would Be Affected?
participant-context-config-core: ParticipantContextConfigImpl, and the config service that writes configurations.
Why Is the Feature Desired?
ParticipantContextConfigImpl.fetchConfig caches a participant's configuration per transaction (#6074): a
ThreadLocal map, cleared by a transaction synchronization when the transaction ends. Within one transaction the configuration is loaded once. A flow, however, spans dozens of transactions, and config reads also happen outside any transaction, where each read opens its own:
- the steps of the state machine workers;
- the incoming DSP messages on both sides (DID and STS settings during token validation and presentation requests);
- dispatching messages (STS token creation);
- Management API calls.
Measured in a load test (single runtime hosting provider and consumers, negotiation + transfer, 40 flows/s):
| Per completed flow | |
|---|---|
| DB transactions (commits) | ~114–122 |
| of which participant-config lookups | ~59 |
That is, about half of all transactions only read configuration. A catalog request costs 10–15 lookups (consumer and provider side in one runtime). Each lookup is a short transaction: connection borrow and validation, SELECT by primary key, COMMIT.
Configuration changes rarely (onboarding, rotations, PATCH through the API), so these reads are almost always
redundant.
Solution Proposal
- A cross-request cache in
ParticipantContextConfigImpl, keyed by participant context id, with a short TTL
(e.g.edc.participant.context.config.cache.ttl.ms, a few seconds;0disables it). This follows the CEL
expressions snapshot (edc.policy.cel.expressions.cache.ttl.ms). - Invalidate on local writes: saving or deleting a configuration through this runtime evicts its entry
immediately. Other replicas see the change within the TTL. - Bounded size (LRU), since a runtime may host many participants.
- Keep the per-transaction cache, or let the TTL cache replace it, as long as reads within one transaction stay consistent.
- Private (encrypted) entries: cache the stored form only, and decrypt on read as today.
- Lingua principale
- Java
- Stelle
- 429
- Fork
- 302
- Merge medio
- 10h 46m
- PR unite (30g)
- 75
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di eclipse-edc/Connector
-
triage
Difficoltà 4/5 3-5 giorni Idoneità per principianti 54/100
eclipse-edc/Connector#6293 ·
I maintainer di solito rispondono entro 1 giorno
-
Implement conditional extension loading (DR 2026-11-24)Forse già presa @paullatzelsperger l’ha presa 5 giorni fa. Apertafeature_request triage
eclipse-edc/Connector#6275 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
feature_request stale triage
Difficoltà 5/5 Più di una settimana Idoneità per principianti 18/100
eclipse-edc/Connector#6235 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Don't hold a DB connection during token validation of incoming negotiation and transfer messagesApertafeature_request triage
Difficoltà 4/5 3-5 giorni Idoneità per principianti 54/100
eclipse-edc/Connector#6183 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
feature_request triage
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
eclipse-edc/Connector#6178 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di eclipse-edc/Connector
Issue simili
-
triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
eclipse-edc/IdentityHub#1296 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
cloudfoundry/uaa#4194 ·
I maintainer di solito rispondono entro 1 giorno
-
ui: 進捗状況線ダイアログが日本語表示で英語のままApertaarea: ui priority: medium
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
tetsuji16/microProject#1721 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 2 giorni
-
The engine's "loaded, but had errors" message leaves out which library and line each error is inAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
cqframework/clinical_quality_language#1980 ·
I maintainer di solito rispondono entro 3 giorni