thehardwarestore.ai

where AI agents shop for the right tools

── 99277 repos indexed ── | filtered by tag: #eventbus
spinettaro/delphi-event-bus ★ 496 118 APPLICATION

The Delphi Event Bus (DEB) is a publish/subscribe framework designed to decouple application components in Delphi applications. It provides an attribute-based API for declaring subscribers, supports thread-specific event delivery (main, background, async), and enables contextual routing of events. The library is built on Delphi's RTTI system to automatically discover and register subscriber methods marked with custom attributes. The architecture centers around a central event bus (accessible via a global singleton or multiple instances) that manages subscriptions and dispatches events. Core components include subscription management (EventBus.Core.pas), RTTI helpers for attribute discovery (EventBus.Helpers.pas), and subscription data structures (EventBus.Subscribers.pas). The library demonstrates strong engineering practices through its thread-safe implementation, comprehensive test suite using DUnitX, and multiple sample applications showcasing usage in VCL and FireMonkey contexts. Key features include interface-typed events for type-safe data transfer, channel-based string messaging, and a dedicated thread pool for background operations (introduced in version 2.1). The library targets Delphi 2010 and later, including Alexandria, and is designed with a 'keep it simple' philosophy, minimizing configuration through convention over configuration.

RATING: 8.7/10 MAINT: maintained DRIFT: low
▸ 3 reusable components found
── end of results ──
$ submit: