How to divide topic, partition and consumer when using kafka?

there is such an application scenario:

  1. the payment center needs to push notification 4 to specify consumer; in the user group
  2. platform needs to send notification 1 to assign consumer to merchant group, 2 to assign consumer to user group, and 3 to send notification to all consumer of rider group

if I use kafka to implement this requirement, can I use the partition shown in the following figure?

Aug.09,2021
Menu