Synchronous and asynchronous workloads are everywhere

preview_player
Показать описание
In this video, I’ll explain synchronous vs asynchronous operations and then discuss examples where this shows up. In programming, real-time messaging, database systems, and operating systems.

0:00 Definition Synchronous vs Asynchronous
4:15 sync vs async In Programming
7:50 Sync vs Async In Real-time messaging
17:00 Sync vs Async In Database Replication
23:50 Sync vs Async in Database Commits
29:30 Sync vs Async in fsync Operating System cache

Become a Member on YouTube

🔥 Members Only Content

Support my work on PayPal

🧑‍🏫 Courses I Teach

🏭 Backend Engineering Videos in Order

💾 Database Engineering Videos

🎙️Listen to the Backend Engineering Podcast

Gears and tools used on the Channel (affiliates)

🖼️ Slides and Thumbnail Design
Canva

🎙️ Mic Gear
Shure SM7B Cardioid Dynamic Microphone

Cloudlifter

XLR cables

Focusrite Audio Interface

📷 Camera Gear
Canon M50 Mark II

Micro HDMI to HDMI

Video capture card

AC Wall for constant power

Stay Awesome,
Hussein
Комментарии
Автор

Nice detail you got in to! I enjoy working with message queues. There is something rewarding about returning a successful response to the client, and then just letting an idle worker pick up the job and execute it in the background.

bbbbburton
Автор

I had trouble in the past understanding why I am not getting a response directly to a REST call, but just a request ID. I thought the REST API was badly designed (in the sense that response is not given directly). At a certain level, I knew it had something to do with allowing the backend to have some more time in processing it - but after watching this video, its like a huge cloud of mist suddenly cleared.
Thanks a lot @Hussein. I loved it

krishnachaitanya
Автор

Good one Hussein ! Learned some stuff. Sync is basically better for small tasks and is usually easier to implement than async.

vcqclcu
Автор

I'm from the days when DBA's worried about consistency would prefer to bypass the file system entirely and write directly to disk to guarantee ACID. Some may remember it as Raw Partitions. It was the closest you could get to bare metal in order to guarantee complete transaction uniformity and data cohesion, almost bypassing the OS completely, giving the DBMS complete control over a disk partition. Nowadays filesystems became very trustworthy and tunable, to the point I haven't seem people using it anymore, and it is generally regarded as a thing of the past. Makes a lot of sense not to use it, if we don't need it anymore due to OS/Filesystem improvements, coz it had several disadvantages, was hard to work with, and was not recommended for those without very good knowledge of their respective DBMS.

jefersonnl
Автор

Thanks a lot Hussein, such a wonderful explanation

nafasm
Автор

as always, great content and explained with enough examples. Keep it up.

marslogics
Автор

Thanks man.... This was very insightful

dcnlyf
Автор

Is writing functions and views to get the response, faster in SQL than doing that function on the backend code?

Thanveershah
Автор

Three things you will get in this video
1. Deep Dive into Async vs Sync
2. Top Level Examples
3. Entertainment (Lots of laughs)

Thank you so much @hnasr <3

yt.neerajkumar
Автор

I have this question been asked during my interview :)

KeepLearingR
Автор

What if my next step depends on the result of that method ? Do I have to wait anyway until I get the result even though that method is async ?

gyanookharel
Автор

Razorpay a leading payment gateway in India facing an outage. Down as of now

SurajPatelCS
Автор

Guy went from async/await to the buffer cache

jetmirberisha
Автор

I think asynchronous operations are like tasks to do later. If I have an operation to do and it is async, "Nah thanks, I will do it later" And when I finish the current task, then I do the async operation

leagonzalezcuello
Автор

Why don't u provides a tutorial of implemeting aysnchrous call from scratch in a synchronous language like c or another without using any inbuilt keywords like async/await

karun
Автор

I prefer synchronicity in my close relationships *db pun intended* asynchronicities in my distant relationships. :)

derickasamani
Автор

you didn't get a haircut from last week of June

satyamkumar