I want to know whether using Salesforce Composite API will give me any performance gain or not in my scenario. I am not expert in Salesforce and don't know much about Composite API. So, before I move to Composite API, I want to know whether it is suitable to me or not.
I have gone through some tutorial over internet and what I understand is - main benefit of using Composite API is to combine multiple API calls. Reduction of API Cal will give performance gain. So, as per my understanding, this will be mainly useful for integration system where you are exchanging data and updating data.
Let me present my case.
I have one Salesforce application and one Web Service (.Net). Purpose of Web Service is to fetch data from Salesforce, merge data in the document and attach document to the Salesforce record.
High level flow is like this.
- Salesforce App calls web service passing some parameters.
- Web Service calls Apex Custom Rest API to fetch data from Salesforce objects.
- Custom Custom Rest API gather data from around 10-15 objects and return it in json format. It also does some data calculation before writing value to json string.
- Web Service processes data received from Rest API, merge in one document and attach that document to one Salesforce record.
Here, there is hardly 2 or 3 DML operation happening in this whole process.
So, does anyone have any thoughts whether I should really use Composite API or not.
Any input will be very useful to me and It will save my lots of efforts.