The functions and classes found within the @sgrud/bus module are
intended to ease the internal and external real-time communication of
applications building upon the SGRUD client
libraries. By establishing a Bus between different modules of an
application or between the core of an application and plugins extending it,
or even between different applications, loose coupling and data transferral
can be achieved.
The @sgrud/bus module includes a standalone JavaScript bundle which is
used to Spawn a background Thread upon import of this module.
This background Thread is henceforth used as central hub for data
exchange. Depending on the runtime environment, either a new Worker() or a
new require('worker_threads').Worker() NodeJS equivalent will be
Spawned.
@sgrud/bus
- The SGRUD Software Bus.The functions and classes found within the
@sgrud/bus
module are intended to ease the internal and external real-time communication of applications building upon the SGRUD client libraries. By establishing a Bus between different modules of an application or between the core of an application and plugins extending it, or even between different applications, loose coupling and data transferral can be achieved.The
@sgrud/bus
module includes a standalone JavaScript bundle which is used to Spawn a background Thread upon import of this module. This background Thread is henceforth used as central hub for data exchange. Depending on the runtime environment, either anew Worker()
or anew require('worker_threads').Worker()
NodeJS equivalent will be Spawned.