Difference between Synchronous and Asynchronous- Salesforce

Difference between Synchronous and Asynchronous-Salesforce

In simple terms you can assume Synchronous as Sequential. In Synchronous process the thread waits for the task to be completed and then moves to the next task Sequentially. All the tasks are completed in a single thread.

The common example of a Synchronous apex is Trigger.

In Asynchronous apex the thread does not waits for the task to be completed to move on to the next task. The tasks are run in different threads all together. These threads run in independent silos whenever the system is free.

Most common example is the Future annotation.

Comments are appreciated !

About Saurabh Dua


  1. very simple and good to understand....

  2. Hi sir,
    if u don't mind can u able to elaborate interms of salesforce how its applicable?


Note: only a member of this blog may post a comment.

Powered by Blogger.