Closed michaelmcandrew closed 7 years ago
Changes at Mailchimp by a subscriber: Mailchimp fires a webhook to update CiviCRM. However Mailchimp is a lazy monkey that cannot be relied upon to do this in a particularly quick way - I've known them to take 20 mins or so to arrive.
Updating group membership at CiviCRM. If you add or remove a single contact to a group that's mapped to Mailchimp this change is done immediately. If you do an update at the CiviCRM end that means several contacts are added/removed from a mapped group in CiviCRM then this change is not immediately pushed up to Mailchimp. In this case it does add a session message to alert the CiviCRM user to the fact that they've just done a bulk update and might want to use the push CiviCRM to Mailchimp sync button.
The reason I said it's not "desirable" to deal with multiple group additions/removals in real-time is that Mailchimp's API is slow, and this could cause the user confusion and thereby cause lost/inconsistent updates - why is my browser spinning waiting so long? Shall I just press reload page? What's happening? Did the page (and therefore the process) time-out?
Hope that clears it up a bit.
closing since this was merged...
The readme says
It would help to have some example scenarios or similar to help people understand when it would be necessary to run the push and pull manually.
It is just when you are setting things up? Is it inevitably, not all of the updates get through (e.g. because of network issue) and so this cleans up any inconsistencies? Happy to submit a pull request to the docs if you are able to give a few more details.
Thanks!