Synchronous VS Asynchronous

If two processes are running Synchronously, it means that second process will wait until or unless first process complete.

If two processes are running Asynchronously, it means second process will not wait for first process result and will be executed.

I will explain a bit more detail in below for each communication.

Synchronous Communication

If two processes are running Synchronously, it means that second process will wait until or unless first process complete. Synchronous Transmission is efficient, reliable and is used for transferring a large amount of data. It provides real-time communication between connected devices. Chat Rooms, Video Conferencing, telephonic conversations, as well as face to face interactions, are some of the examples of Synchronous Transmission.

Check the sample php snippet below for synchronous communication.

Asynchronous Communication

If two processes are running Asynchronously, it means second process will not wait for second process result and will be executed. It is simple, fast, economical and does not require a 2-way communication. Letters, emails, forums, televisions and radios are some of the examples of Asynchronous Transmission.

Check the js snippet below for asynchronous communication

By Yuuma




アプリ関連ニュース

お問い合わせはこちら

お問い合わせ・ご相談はお電話、またはお問い合わせフォームよりお受け付けいたしております。

tel. 06-6454-8833(平日 10:00~17:00)

お問い合わせフォーム