Event Driven
Last updated
What is Event Driven?
Event-driven invocation uses a trigger to start the background task. Examples of using event-driven triggers include:
- The UI or another job places a message in a queue. The message contains data about an action that has taken place, such as the user placing an order. The background task listens on this queue and detects the arrival of a new message. It reads the message and uses the data in it as the input to the background job. This pattern is known as asynchronous message-based communication.
- The UI or another job saves or updates a value in storage. The background task monitors the storage and detects changes. It reads the data and uses it as the input to the background job.
- The UI or another job makes a request to an endpoint, such as an HTTPS URI, or an API that is exposed as a web service. It passes the data that is required to complete the background task as part of the request. The endpoint or web service invokes the background task, which uses the data as its input.
Free resources to learn Event Driven
More in stage 7: Background Jobs
Event Driven: common questions
Can I learn Event Driven in Hindi?
This lesson is written in English. Once you sign in, open it in the interactive course and ask the AI tutor to explain Event Driven in Hindi or Hinglish. The tutor answers from this lesson’s own text, so it stays on the syllabus, and it runs on your own Google, OpenAI or Anthropic key.
Is this Event Driven tutorial for beginners?
It is lesson 14 of 147 in the free System Design roadmap, in stage 7, Background Jobs. If you are new to System Design, start from stage 1 and come back here in order; if you already know the earlier stages, this lesson stands on its own.