Hypothesis Text
If we update the EventBus extension to utilize in-process PHP events for page state changes and conduct initial research to verify the feasibility of implementing a long-lived PHP Kafka listener, we will demonstrate that domain events are a viable option for both broadcasting and consuming events for use cases beyond MediaWiki.
Description
Over the course of FY24-25, we identified and implemented domain events as a mechanism to improve stability across MediaWiki by replacing some event-like hooks with a new domain event pattern.
- Milestones
- Replace the following hooks with well-established PageState change events:
- PageSaveCompleteHook
- PageDeleteCompleteHook
- [Stretch] Replace the following hooks with new PageState change events:
- PageMoveCompleteHook
- PageUndeleteCompleteHook
- ArticleRevisionVisibilitySetHook
- Testing period
- Spike work for determining feasibility of PHP Kafka listener
- [Stretch] Basic PoC to implement an example pipeline for bringing data into MW