Resource Event Source for Notification Based External Events
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
Direzione di ricerca
Inizia leggendo le implementazioni esistenti di CachingInboundEventSource, PollingEventSource e PerResourcePollingEventSource per comprenderne il comportamento relativo agli eventi e al caching. Il lavoro è completo quando una notifica in ingresso senza una risorsa recupera e memorizza nella cache l’intera risorsa esterna, quindi propaga un evento di modifica al gestore degli eventi.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
For Kubernetes resources we already have this cache in Informer, for external resources we have the CachingInboundEventSource for a resource oriented event coming from an external system. And two flavors of polling event source: PollingEventSource and PerResourcePollingEventSource.
What we don't have covered is the situation for an external resource when it is capable to notify about change, but the notification not contains the resource it self. Typically such external events are comming from AWS resources, like from RDS:
see: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-cloudwatch-events.sample.html
A sample event does not contains the resource itself.
( see also: Event Notification https://martinfowler.com/articles/201701-event-driven.html )
We have two options here either the dependent resource fetches the resource on reconcile and puts it into local cache. Or we prepare an even source that when receives an inbound event also fetches and caches the resource (then triggers and event).
This would be much more optimal, since we just don't fetch resource on every reconcile. So the event source logic should look like this:
sequenceDiagram
participant InboundFetchingEventSource
participant ExternalService
participant EventHandler
ExternalService->>InboundFetchingEventSource: Send Resource Changed Event
InboundFetchingEventSource->>ExternalService: Fetch The Whole Resource
InboundFetchingEventSource->>InboundFetchingEventSource: Cache The Resource
InboundFetchingEventSource->>EventHandler: Propagate Event About The Change
- Lingua principale
- Java
- Stelle
- 944
- Fork
- 242
- Merge medio
- 1g 4h
- PR unite (30g)
- 43
Guida per i contributori
Apri 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 operator-framework/java-operator-sdk
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 72/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
operator-framework/java-operator-sdk#3621 · 5 commenti ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
operator-framework/java-operator-sdk#3617 · 1 commento ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 38/100
operator-framework/java-operator-sdk#3615 · 1 commento · 3 reazioni ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
operator-framework/java-operator-sdk#3568 · 1 commento · 1 reazione ·
Tutte le issue di operator-framework/java-operator-sdk
Issue simili
-
Bug Java Platform: Java
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
getsentry/sentry-java#6138 · 1 commento ·
-
bug needs triage p2
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
GoogleCloudPlatform/DataflowTemplates#4273 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
bug needs triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100