Discussions

News: Use dynamic proxies to create a simple, powerful event bus

  1. In the first part of our event bus series, we built an event bus based on the idea of a method call repeater. We call a method on an object and the event bus uses dynamic proxies to repeat that same call on all observers.  In this second part, we introduce six new features to improve the bus' robustness and utility.  We tackle:

    • Event Filtering
    • Event Topics
    • Untyped Listeners
    • Exception Handling
    • Garbage Collection
    • Thread-local Events

    Read the full article: Use dynamic proxies to create a simple, powerful event bus (Part 2)

    What features would you add to improve the event bus?


    Threaded Messages (1)

  2. GitHub[ Go to top ]

    The event bus project is now hosted on GitHub.

    https://github.com/NorthConcepts/event-bus