KyoMel / Yogyakarta, Indonesia

Term 036036 / 344

Event-Based Concurrency

Month
August 2025
Day
6
Source
2025/august-term.md

Definition:

Event-Based Concurrency is a programming model where tasks run concurrently by reacting to events (such as user actions, messages, or I/O), allowing efficient management of multiple tasks without multiple threads.

Example:

Node.js HTTP Server (Non-blocking, Event-Based):

const http = require("http");

http.createServer((req, res) => {
  res.end("Hello, Event-Based Concurrency!");
}).listen(3000);

console.log("Server running on port 3000");

Keep reading