Code sketch for baucis events using mubsub