Pergunta de entrevista da empresa Didi Chuxing

Can you implement a publisher-subscriber pattern?