Myriad::Subscription - microservice subscription abstraction
my $storage = $myriad->subscription;
Note that this is defined as a rôle, so it does not provide a concrete implementation - instead, see classes such as:
Myriad::Subscription::Implementation::Redis
Myriad::Subscription::Implementation::Memory
Register a new Receiver to notify it when there is new data.
Receiver
it takes a hash as an argument that should have the following
sink - a Ryu::Sink that the subscription will emit new messages to.
sink
channel - The events channel name where the Emitter will emit the new events.
channel
Emitter
client - The name that this Receiver should use while fetching new events.
client
Register a new Emitter to receive events from.
source - a Ryu::Source where the messages will be emitted to.
source
channel - The name of the events channel that should be used to send the messages to.
Start processing the subscriptions.
Stop processing the subscriptions.
BUILDARGS
Deriv Group Services Ltd. DERIV@cpan.org.
DERIV@cpan.org
See "CONTRIBUTORS" in Myriad for full details.
Copyright Deriv Group Services Ltd 2020-2022. Licensed under the same terms as Perl itself.
To install Myriad, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Myriad
CPAN shell
perl -MCPAN -e shell install Myriad
For more information on module installation, please visit the detailed CPAN module installation guide.