[feature] pubsub SP and unit test