MySQL 9.1.0
Source Code Documentation
|
A new producer component would typically mean new set of events being introduced.
In such a case, new services should be introduced - just like existing set of event tracking services. E.g. something like following:
Once introduced, producer should be able to broadcast the event to all interested consumer. To achieve that, a consumer should do following:
Further, a consumer component may be uninstalled at any time. To facilitate that, the reference cache created by the producer should release corresponding reference. This can be achieved by implementing s_mysql_dynamic_loader_services_unload_notification and refreshing reference caches as a part of it. Reference caching component will take care of informing the producer whenever a component is being uinstalled.
In addition, developer may also think about writing wrappers to facilitate development of consumer component. For example see EVENT_TRACKING_GENERAL_CONSUMER_EXAMPLE.