동기와 비동기의 개념의 차이


데이터를 처리하는 방식에는 동기와 비동기가 있다.

동기는 말 그대로 동시에 일어난다는 뜻. 요청과 결과가 동시에 일어난다는 약속.

비동기는 동시에 일어나지 않는다는 의미. 즉, 요청과 결과가 동시에 일어나지 않는다.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/f83472b8-c9f8-4c38-908f-81f2061cf271/block_nonblock.png

동기 (synchronous)

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/f6b0bc0f-81b7-4af0-9f2e-a342bb8b21ae/synchronous.jpg

비동기 (Asynchronous)