Content-based publish/subscribe systems: architectures and algorithms