What's an Event Driven System?

An event driven system is like a toy that reacts to how you play with it, every push, pull, or twist makes something happen.

Imagine you have a remote control for your favorite robot toy. When you press the "go forward" button, the robot moves. That’s an event, the button being pressed, and the robot moving is the response to that event.

Now imagine the robot has sensors too. If it bumps into something, it stops or turns around. That’s like having a special friend who watches what happens and decides what to do next.

In an event driven system, everything works like this: when something happens, like a button is pressed or a sensor detects movement, the system knows exactly what to do in response.

How It Feels Like Playing with Friends

Think of it like playing with friends. When one friend shouts, "I’m ready!" another friend starts the game. If someone trips, they shout, "Ouch!" and everyone stops to help them up. Each shout or action is an event, and each response, like starting a game or helping someone up, is how the system reacts.

This way, everything happens in real time, just like when you’re having fun with your toys! An event driven system is like a toy that reacts to how you play with it, every push, pull, or twist makes something happen.

Imagine you have a remote control for your favorite robot toy. When you press the "go forward" button, the robot moves. That’s an event, the button being pressed, and the robot moving is the response to that event.

Now imagine the robot has sensors too. If it bumps into something, it stops or turns around. That’s like having a special friend who watches what happens and decides what to do next.

In an event driven system, everything works like this: when something happens, like a button is pressed or a sensor detects movement, the system knows exactly what to do in response.

Take the quiz →

Examples

  1. A light turns on when you walk into a room, the motion sensor is an event, and turning on the light is the response.
  2. Your phone vibrates when you get a message, receiving a message is the event, and vibrating is the system's reaction.
  3. A vending machine gives you your snack after you pay, paying is the event, and dispensing the snack is the action.

Ask a question

See also

Discussion

Recent activity