EventSource
The Argo Events resource that listens to an outside source, such as a webhook or a queue, and publishes what arrives as events.
In more detail
Each EventSource names one or more events of a type, for example a webhook entry called push. It turns each input into a CloudEvent and publishes it on the EventBus, where Sensors subscribe.
Example
const es = new EventSource("/api/stream"); es.onmessage = (e) => render(e.data)Related terms
- Argo Events — An event-driven automation framework for Kubernetes that turns events from outside sources into actions such as starting a workflow.
- EventBus — The Argo Events resource that carries events from EventSources to Sensors inside a namespace.
- CloudEvents — An open specification for describing events in a common way, with attributes such as id, source, type and time.
- Server-Sent Events — A standard way for a server to keep an HTTP response open and push a stream of text events to the client, in one direction only.
- Last-Event-ID — The header a Server-Sent Events client sends when reconnecting, carrying the id of the last event it received so the server can continue from there.
Taught in
- One Commit, Four Argo Projects — Certified Argo Project Associate (CAPA) Exam Prep
- EventSource, EventBus, Sensor And Trigger — Certified Argo Project Associate (CAPA) Exam Prep
- Filters, Parameters And A Workflow From A Push — Certified Argo Project Associate (CAPA) Exam Prep
- Final Mock, Review And A Trap Sprint — Certified Argo Project Associate (CAPA) Exam Prep
- Server-Sent Events: Streaming Updates & Recovery — Production Full-Stack Engineering