Reactor pattern
Event handling pattern for handling service requests delivered concurrently to a service handler by one or more inputs; the service handler then demultiplexes the incoming requests and dispatches them synchronously to the associated request handlers
The reactor software design pattern is an event handling strategy that can respond to many potential service requests concurrently. The pattern's key component is an event loop, running in a single thread or process, which demultiplexes incoming requests and dispatches them to the correct request handler.
Nº Q1122024 ★
Common · Knowledge
Reactor pattern
Event handling pattern for handling service requests delivered concurrently to a service handler by one or more inputs; the service handler then demultiplexes the incoming requests and dispatches them synchronously to the associated request handlers
The reactor software design pattern is an event handling strategy that can respond to many potential service requests concurrently. The pattern's key component is an event loop, running in a single thread or process, which demultiplexes incoming requests and dispatches them to the correct request handler.
Last price
—
Floor price
—
7-day median
—
30-day sales
0
30-day range
—
In circulation
0
Price history
median
low – high
sales
No sales in this period
Show table
| Date | median | Low | High | sales |
|---|
Sales history
- Last sale
- —
- 30-day average
- —
- 30-day low
- —
- 30-day high
- —
- Sales 7d
- 0
- Sales 30d
- 0
No sales yet.
Anonymous sales: no buyer or seller shown. Figures count player-to-player sales only.
From Wikipedia
The reactor software design pattern is an event handling strategy that can respond to many potential service requests concurrently. The pattern's key component is an event loop, running in a single thread or process, which demultiplexes incoming requests and dispatches them to the correct request handler. By relying on event-based mechanisms rather than blocking I/O or multi-threading, a reactor can handle many concurrent I/O bound requests with minimal delay. A reactor also allows for easily modifying or expanding specific request handler routines, though the pattern does have some drawbacks and limitations. With its balance of simplicity and scalability, the reactor has become a central architectural element in several server applications and software frameworks for networking. Derivations such as the multireactor and proactor also exist for special cases where even greater throughput, performance, or request complexity are necessary.
Text: Wikipédia, CC BY-SA 4.0. ·
Related cards
-
Service locator pattern
Software pattern to dynamically control the loading of objects at run-time via a central registry object.
Nº Q7455762 ★
Not listed
-
E
Event loop
Programming design pattern that waits for and dispatches events or messages in a program
Nº Q1349935 ★
Not listed
-
Decorator pattern
Design pattern in object-oriented programming
Nº Q23839 ★★
Not listed
-
C
Circuit breaker design pattern
Behavioral design pattern in software development
Nº Q5121595 ★
Not listed
-
C
Command pattern
Behavioral design pattern
Nº Q386776 ★
Not listed
-
Strategy pattern
Design pattern enabling selection of algorithms at runtime
Nº Q775349 ★★
Not listed