Difference between Synchronous and Asynchronous in Salesforce | Techila
1192
single,single-post,postid-1192,single-format-standard,ajax_updown_fade,page_not_loaded,,qode_grid_1300,footer_responsive_adv,hide_top_bar_on_mobile_header,qode-content-sidebar-responsive,qode-theme-ver-9.4.2,bridge,wpb-js-composer js-comp-ver-4.12,vc_responsive
 

Difference between Synchronous and Asynchronous- Salesforce

synchronous-vs-async

Difference between Synchronous and Asynchronous- Salesforce

Content: Difference between Synchronous and Asynchronous in Salesforce

Synchronous
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.

Asynchronous
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.

Know more about Salesforce Development here.

Courtesy

Author: techila

No Comments

Post A Comment