R2P publish/subscribe middleware