Architect: Microservices for Data Synchronicity
When we can utilize asynchronous communication in the confines of a web application it is paramount that we take advantage of this property. For traceability and overall maintenance profile, a microservice fits the bill. That task for synchronizing data across third party platforms can be scheduled, queued and managed in this fashion. To do this in the context of Salesforce, we need to utilize the SFDC REST api and map the application objects to the SFDC objects. We maintain the linkage by adding a custom external id attribute on the application end and likewise a custom external id field for the SFDC target object. For object changes originating on the SFDC platform, the process is more complex. A bulkified object trigger needs to be in placed on the SFDC end. This trigger will fire a custom APEX class that uses the PartnerPath REST API to make sure the object change is mirrored on the application end.