Lightweight pubsub utility