1. Adobe Commerce Developer Documentation
Events and observers: "You declare an observer in the events.xml file. The file can be in the /etc
/etc/frontend
or /etc/adminhtml directory." The documentation provides a specific example for the customerregistersuccess event.
Source: Adobe Commerce Developer Guide > PHP Developer Guide > The Core > Events and observers.
2. Adobe Commerce Developer Documentation
Module configuration files: The official list of module configuration files includes events.xml for "Event configuration" and does not list an observer.xml file.
Source: Adobe Commerce Developer Guide > PHP Developer Guide > The Core > Modules > Module configuration files.