Follow us on: facebook twitter linkedin

PROGRAMING

Synchronous vs Asynchronous programming

Post by : John Deo
Post date: 2024-08-13 14:33:37

Read time : 2 minute
Total views: 230 times
hero-img

Whats synchronous and asynchronous?

Synchronous mean when task execution request has been send u should wait for result. Once task execution have done and result ready, then next request may proceed.

In Asynchronous way multiple task execution request will have send almost same time. There no need for wait.

 

Asynchronous necessary?

Suppose u have form where two input field. One for upload video another for image. In ur backend u have two function for handle input filtering and sanitizing. In synchronous way program execution will be delay. Since Second function will wait whether first function execution done or not. To make program faster and efficient Asynchronous is great way.

Share by:

Keep exploring

Read what excites, achieves and moves us Read what excites, achieves and moves us