Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

There are also some disadvantages to this approach:

  1. Each At the moment, each plugin has a unique thread resource to run its event loop. This will effect the maximum number of plugins a single Hub can support.
  2. It is important not to execute operations in plugin callback methods that can block or take a significant amount of time to run. If that happens, the plugin will stop receiving events until the long-running operation completes. Hobson provides handy asynchronous mechanisms for common blocking operations such as HTTP calls and socket I/O that are event loop friendly.
  3. If a plugin must create its own thread(s) to do work, it must make sure that when it returns the results of that work to the Hobson runtime it does so through the event loop. There is a plugin method executeInEventLoop() that facilitates this.

...