event
A record of something that has already happened, such as task completed, with an identifier, a time, a type and its data.
In more detail
A command asks for work to be done; an event reports a fact. The producer owns the event’s meaning, and consumers can evolve independently as long as that meaning stays stable.
Example
In Kafka an event is stored as a record, and the words are often used interchangeably.Related terms
- event-driven architecture — A design in which services communicate by publishing and reacting to events, instead of calling each other directly and waiting.
- producer — The program that creates and sends messages or events.
- consumer — A program that receives and processes messages or events, or more broadly any client that uses an API.
- message queue — A store that holds messages from producers until consumers are ready to process them, decoupling the rate of arrival from the rate of work.
- event source — The service or thing that produces events and invokes a function, such as S3, a queue or a schedule.
- AWS Lambda — The AWS service that runs a piece of code, called a function, each time an event arrives, with no servers for you to manage.
- idempotency — The property of an operation that gives the same result whether you run it once or many times, because a repeat run finds nothing left to do.
- Kafka record — One entry in a Kafka topic, made of an optional key, a value, optional headers and a timestamp.
- event ID — A unique identifier the producer puts in each event so consumers can recognise the same event if it arrives twice.
- event envelope — A standard outer structure that wraps an event's business payload with metadata such as event ID, type, version and time.
Taught in
- Webhooks Versus Polling — Modern API Architecture: REST, GraphQL & gRPC
- WebSockets — Modern API Architecture: REST, GraphQL & gRPC
- Server-Sent Events — Modern API Architecture: REST, GraphQL & gRPC
- Event-Driven Architecture And Queues — Modern API Architecture: REST, GraphQL & gRPC
- Policies and Least Privilege — Cloud Infrastructure & Hyperscaler Architecture
- Serverless Compute (Lambda) — Cloud Infrastructure & Hyperscaler Architecture
- Comparing Compute Options — Cloud Infrastructure & Hyperscaler Architecture
- S3: Buckets and Objects — Cloud Infrastructure & Hyperscaler Architecture
- Observability with CloudWatch — Cloud Infrastructure & Hyperscaler Architecture
- The Queue That Forgot — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- Where A Record Lands — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- Acknowledged Is Not Always Safe — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- Retention Deletes Files, Not Records — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- The Retry That Overtook — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- Two Copies Of One Service — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- The Field The Registry Refused — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- Blank Names After Every Deploy — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- Two Hours Of Scans At Once — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- The Alert That Came An Hour Late — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- The Connector That Was Created Twice — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- A Sink That Died On Record Nine — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- Eleven Thousand Scans That Never Arrived — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- Duplicates Are The Default — Apache Kafka & Event Streaming
- Idempotent Consumers And Deduplication Keys — Apache Kafka & Event Streaming
- Bytes On The Wire: JSON, Avro And Protobuf — Apache Kafka & Event Streaming
- Headers, Envelopes And Event Metadata — Apache Kafka & Event Streaming
References
- AWS: What is an event-driven architecture?
- Apache Kafka: Introduction
- Lambda: event-driven architectures
- Apache Kafka: what is event streaming
- Enterprise Integration Patterns: event message