Microservice Python SDK: Using Notifications2 to listen to all new device registration

Just FYI, the this is the GitHub issue I’ve just created.

Hi again,
Just FYI (again) the curated list of roles I need to assign to the microservice to work is this:

    "requiredRoles": [
        "ROLE_OPTION_MANAGEMENT_READ",
        "ROLE_NOTIFICATION_2_ADMIN",
        "ROLE_INVENTORY_READ",
        "ROLE_DEVICE_CONTROL_READ",
        "ROLE_DEVICE_CONTROL_ADMIN",
        "ROLE_MANAGED_OBJECT_READ",
        "ROLE_MANAGED_OBJECT_ADMIN",
        "ROLE_BULK_OPERATION_ADMIN"
    ],

Regards!

Thanks for creating the issue.

I also recommend having a look at the SDK’s latest features, e.g. the queue listeners (AsyncQueueListener, QueueListener) and “auto ack” and “auto unsubscribe” parameters (e.g. AsyncListener).

Hi again!

Thanks for the suggestions. About them:

  • auto ack: I would prefer to ACK it by myself to ensure the job has been done.
  • auto unsubscribe: it’s True by default and I haven’t touch it :wink: .
  • Queue*: I currently work with single worker processes and I suspect using it would be early over complicating the design.

Regards,
emilio