You should fire the above after every profile update so it always remains up to date. You should handle whether you need to do an actual update or not in your 3rd party solutions endpoint. So for example if I called the above then whenever the HTTP request is processed it should check if any of those have changed comparing against existing values and if they have then save and if not then just disregard the request.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
then next update will try again.
Please Log in or Create an account to join the conversation.
If the first request failed for whatever reason then the next time he updates his profile it'll try again. I suppose you could also execute your request on login too if you wanted.What do you mean by this ? If user update his profile for example the next time he login (could be days after) ? Or you mean to build something who will attempt again and again to reach remote server until data is updated?
It will be assuming the connection to your external server does not fail. Fire your action after registration, after login, and after profile update and you shouldn't have any problems keeping them synchronized. There's no way for you to keep them synchronized down to the very second firing it on those 3 triggers every time is your best option to keep it synchronized.In both case this is not ideal for me because data between each server must absolutely be always equal each seconds/minutes. If for example a user update without problem his email in Joomla/CB but the new email was not transmitted on remote server, user will never be able to be connected to remote server. I cannot take the risk to have a user who have different email in both system. This is the reason why I prefer before be sure to be able to reach remote server. If is not possible, CB profile must not be updated and in this case data are always equal even if not updated.
Please Log in or Create an account to join the conversation.