You need to sign in to do that
Don't have an account?

Apex job queues VS Outbound message queues
Use case: I want to send Salesforce record's internal id to external system. It can be done in two ways-
1. Outbound message to a public service
2. Future call from apex trigger.
#1 will goto Outbound message queues, #2 will be routed from Apex job queues. Workwise, my experience is outbound messages are faster compared to apex job queues. Also I have seen apex jobs in queued state but outbound messages are sent immediately. There is no doc which compares these two queues, so can anyone throw more light in terms of performance comparision for both of these queues?
1. Outbound message to a public service
2. Future call from apex trigger.
#1 will goto Outbound message queues, #2 will be routed from Apex job queues. Workwise, my experience is outbound messages are faster compared to apex job queues. Also I have seen apex jobs in queued state but outbound messages are sent immediately. There is no doc which compares these two queues, so can anyone throw more light in terms of performance comparision for both of these queues?
For Asynchronous jobs you can refer to this link https://developer.salesforce.com/page/Asynchronous_Processing_in_Force_com. I would suggest to read the Integration patterns and practices. Here is the link https://resources.docs.salesforce.com/198/latest/en-us/sfdc/pdf/integration_patterns_and_practices.pdf