Myriad::Service::Implementation - microservice coördination
These methods return instance variables.
Provides a common Ryu::Async instance.
The Myriad instance which owns this service. Stored internally as a weak reference.
The name of the service, defaults to the package name.
General metrics that any service is assumed to have
Timing information about RPC calls tagged by service, status and method name
Timing information about the batch subscriptions tagged by service, status and method name
Timing information about events receivers tagged by service, status and method name
A counter for the events emitted by emitters tagged by service and method name
Populate internal configuration.
Apply this service to the current event loop.
This will trigger a number of actions:
initial startup
first diagnostics check
if successful, batch and subscription registration will occur
To wire the service with Myriad's component before it actually starts work
Perform the diagnostics check and start the service
Initialize the service internal status it will be called when the service is added to the IO::Async::Loop.
The method here is just a placeholder it should be reimplemented by the service code.
Runs any internal diagnostics.
Gracefully shut down the service. At the moment, this means we:
stop accepting more requests
finish the pending requests
add_child, adopt_future, adopted_futures, can_event, children, configure_unknown, debug_printf, get_loop, invoke_error, invoke_event, loop, make_event_cb, maybe_invoke_event, maybe_make_event_cb, notifier_name, parent, remove_child, remove_from_parent
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.