adding publisher and consumer for topic publish