Artwork

Contenu fourni par Salesforce Casts Podcast and Krishna Teja. Tout le contenu du podcast, y compris les épisodes, les graphiques et les descriptions de podcast, est téléchargé et fourni directement par Salesforce Casts Podcast and Krishna Teja ou son partenaire de plateforme de podcast. Si vous pensez que quelqu'un utilise votre œuvre protégée sans votre autorisation, vous pouvez suivre le processus décrit ici https://fr.player.fm/legal.
Player FM - Application Podcast
Mettez-vous hors ligne avec l'application Player FM !

Synchronous vs Asynchronous Programming in Salesforce

7:48
 
Partager
 

Manage episode 222531555 series 2443977
Contenu fourni par Salesforce Casts Podcast and Krishna Teja. Tout le contenu du podcast, y compris les épisodes, les graphiques et les descriptions de podcast, est téléchargé et fourni directement par Salesforce Casts Podcast and Krishna Teja ou son partenaire de plateforme de podcast. Si vous pensez que quelqu'un utilise votre œuvre protégée sans votre autorisation, vous pouvez suivre le processus décrit ici https://fr.player.fm/legal.

In this episode let’s look into what’s Synchronous and Asynchronous Programming and how do we do it Salesforce platform.

Synchronous Programming

In Synchronous programming statements will be executed one after the other. Say, we have 10 lines of code, then each and every line will be execute one after the other. So first line has to be executed it's only then the execution jumps to the second line. Likewise, second line has to be executed, only after that execution jumps on to the third line, so one and so forth. So, If our first statement is dealing with fetching list of Account records, until we get the data, execution will not jump on to the next line.

Asynchronous Programming

Asynchronous Programming is a methodology in which statements will not be executed one after the other. let’s say we have 10 lines of code and one of the statements in these 10 lines is a setTimeout() statement and lets go with the assumption that we want it to get executed after 10 secs. Then the execution comes to this setTimeOut statement and the moment the execution hits this statement, we are telling the computer I want to run this function but I don’t want to do it at least for a 10000 milliseconds in the future. So once 10 seconds from now gets passed that’s when I want this statement to get executed.

Often we use this format of coding when we want to get data from other systems or when we make AJAX calls and etc. So we make the call and the thread doesn’t know when the response is going to comeback. This is Asynchronous Programming.

We also discussed about other things in this episode. Please check it out.

× × × SIIIICK ××× PIIIICKS × × ×

A concept inspired from wesbos

Subscribe

You can subscribe to my course at Salesforce Casts

Links:

  continue reading

28 episodes

Artwork
iconPartager
 
Manage episode 222531555 series 2443977
Contenu fourni par Salesforce Casts Podcast and Krishna Teja. Tout le contenu du podcast, y compris les épisodes, les graphiques et les descriptions de podcast, est téléchargé et fourni directement par Salesforce Casts Podcast and Krishna Teja ou son partenaire de plateforme de podcast. Si vous pensez que quelqu'un utilise votre œuvre protégée sans votre autorisation, vous pouvez suivre le processus décrit ici https://fr.player.fm/legal.

In this episode let’s look into what’s Synchronous and Asynchronous Programming and how do we do it Salesforce platform.

Synchronous Programming

In Synchronous programming statements will be executed one after the other. Say, we have 10 lines of code, then each and every line will be execute one after the other. So first line has to be executed it's only then the execution jumps to the second line. Likewise, second line has to be executed, only after that execution jumps on to the third line, so one and so forth. So, If our first statement is dealing with fetching list of Account records, until we get the data, execution will not jump on to the next line.

Asynchronous Programming

Asynchronous Programming is a methodology in which statements will not be executed one after the other. let’s say we have 10 lines of code and one of the statements in these 10 lines is a setTimeout() statement and lets go with the assumption that we want it to get executed after 10 secs. Then the execution comes to this setTimeOut statement and the moment the execution hits this statement, we are telling the computer I want to run this function but I don’t want to do it at least for a 10000 milliseconds in the future. So once 10 seconds from now gets passed that’s when I want this statement to get executed.

Often we use this format of coding when we want to get data from other systems or when we make AJAX calls and etc. So we make the call and the thread doesn’t know when the response is going to comeback. This is Asynchronous Programming.

We also discussed about other things in this episode. Please check it out.

× × × SIIIICK ××× PIIIICKS × × ×

A concept inspired from wesbos

Subscribe

You can subscribe to my course at Salesforce Casts

Links:

  continue reading

28 episodes

ทุกตอน

×
 
Loading …

Bienvenue sur Lecteur FM!

Lecteur FM recherche sur Internet des podcasts de haute qualité que vous pourrez apprécier dès maintenant. C'est la meilleure application de podcast et fonctionne sur Android, iPhone et le Web. Inscrivez-vous pour synchroniser les abonnements sur tous les appareils.

 

Guide de référence rapide