I\'ve been studying the publish/subscribe pattern and I haven\'t found some details for a problem: based on a frontend that makes http requests, how does an action function