Alternative event stream mechanisms
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 30/100
Direzione di ricerca
L’issue non indica file né test; inizia individuando il sistema Webhook esistente, i meccanismi degli eventi annunciati e i payload JSON delle notifiche. Confronta gli approcci proposti long-poll e WebSocket opzionale con i casi d’uso elencati, quindi definisci il comportamento dell’API scelta e i relativi criteri di completamento.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Context
The current Webhook system is, in my opinion, not the ideal solution for event notifications, for several reasons:
- they require clients that are addressable/reachable from the server
- they are hard to use for short-lived clients
- they add potential security hazards (like documented)
- they are difficult to use in a fault tolerant way
To 4. In reality a client would often have to poll the webhooks endpoint to check for errors and potentially handle missed pieces of information by itself (e.g. missed segments)
Description
Introduce some other event mechanism that avoids the pitfalls mentioned above.
E.g. what about a long-poll mechanism:
- The client sends a flow-request with it's latest timestamp or (metadata) version
- The server only responds once the timestamp/metadata differs from what the client sent
Basically similar to Consul blocking queries
Way easier to implement on the client-side and would even work in the browser. Would also be super useful for one-off notifications.
or an optional websocket mechanism (potentially better suited for multi-flow events). Could probably use the same json payloads like the existing notifications and would just need a type of registration query/payload.
Use Case
- eliminate issues outlined in Context
- enable more clients that depend on live-data to avoid polling
I assume you have already thought about alternative mechanisms as the service can explicitely advertise them.
- Lingua principale
- Makefile
- Stelle
- 117
- Fork
- 13
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un 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 bbc/tams
-
Allow UUID versions 6-8 for idsForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertaenhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
App Note 14 clarification for full API pathForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertatsc-discuss
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
appnote
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
[BUG] Flow Profiles can't be deletedForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertatsc-discuss
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
-
documentation spec
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
Issue simili
-
changelog investigate
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
ramnes/notion-sdk-py#454 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
anthropics/claude-agent-sdk-python#1509 ·
I maintainer di solito rispondono entro 2 giorni
-
from-review-extraction priority: medium python severity:suggested
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
LearningCircuit/local-deep-research#8665 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
external feature request openai
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
langchain-ai/langchain#41853 ·
I maintainer di solito rispondono entro 1 giorno