Copy link to clipboard
Copied
Hi,
is there a possibility to subscribe or somehow add an Observer to creation/updating and deleting of the collections and its collection sets?
I have a publishing service that has a 1:1 relation to local collections. I need them to be in the sync. If you know any other way please let me know.
Thanks
There’s no way to get notifications via the SDK, unfortunately. The best you can do is to periodically iterate through the collection tree looking for changes. One pass should be very fast, a small fraction of a second, probably. So if you did it, say, once a minute, the CPU cost wouldn’t be noticeable. Such polling offends our architectural sensibilities, but it’s a practical solution that many plugins use.
Copy link to clipboard
Copied
There’s no way to get notifications via the SDK, unfortunately. The best you can do is to periodically iterate through the collection tree looking for changes. One pass should be very fast, a small fraction of a second, probably. So if you did it, say, once a minute, the CPU cost wouldn’t be noticeable. Such polling offends our architectural sensibilities, but it’s a practical solution that many plugins use.
Copy link to clipboard
Copied
it is a terrible solution! But a viable one!
Also, it is very interesting to see that such popular software has so limited SDK capabilities. I wonder how many developers and users alike would benefit from better SDK and better connectivity to external platforms.