This is just a high level discussion. The actual implementation of the UDP server may be a single standalone process that will then make HTTP requests to a cachecontroller.php on each of the node servers.
So flow would be like:
1) bean1 on node1 gets invalidated
2) udp packet sent by redbean cache plugin to UDP server running on localhost
3) udp server is configured with node2 and node3 addresses (
http://node2/cachecontrol.php and
http://node3/cachecontrol.php)
4) udp server makes get requests to both cachecontrol with bean1 type and id.
5) node2 and node3 clear apc cache entries for bean1 if they exist
The reason for running the cachecontrol.php is because it needs to run in the apache server context to have access to the APC shared memory.