Recommendations for the pull mechanism of Google pub/sub notifications

I am using EMM (Android Management) in my project. For each new enterprise, I am creating a new topic and a subscription with push config. I've a separate server where I've hosted an api that listens to the google pubsub notifications and process them.

Now I want to change the notifications receiving mechanism to pull and then a background job will receive and process all messages.

For this I've got couple of questions as follows;

  1. Should I create a new topic and a subscription for each new enterprise or is a single topic and a subscription enough for all enterprises. What's the recommendation?
  2. For each enterprise, I am defining notificationtypes e.g  enterprise.EnabledNotificationTypes = new[] { "ENROLLMENT", "STATUS_REPORT" }; Is it enough or do I still need to apply filters on a subscription?

 

0 0 43
0 REPLIES 0