Concurrent Requests and Unique Keys on Web Applications

  Рет қаралды 6,772

Hussein Nasser

Hussein Nasser

Күн бұрын

In this video I explain how primary key cannot be duplicated even if concurrent transactions are executed in the same time.
🏭 Software Architecture Videos
• Software Architecture
💾 Database Engineering Videos
• Database Engineering
🛰 Network Engineering Videos
• Network Engineering
🏰 Load Balancing and Proxies Videos
• Proxies
🐘 Postgres Videos
• PostgresSQL
🚢Docker
• Docker
🧮 Programming Pattern Videos
• Programming Patterns
🛡 Web Security Videos
• Web Security
🦠 HTTP Videos
• HTTP
🐍 Python Videos
• Python by Example
🔆 Javascript Videos
• Javascript by Example
👾Discord Server / discord
Support me on PayPal
bit.ly/33ENps4
Become a Patreon
/ hnasr
Stay Awesome,
Hussein

Пікірлер: 26
@anonymous.youtuber
@anonymous.youtuber 4 жыл бұрын
As usual, a superb explanation!
@anthonyfarias321
@anthonyfarias321 4 жыл бұрын
This is very good stuff man.
@dominicwong5647
@dominicwong5647 3 жыл бұрын
Great stuff Hussein, love your videos
@javedutube10
@javedutube10 3 жыл бұрын
As Always, love your explanation.
@IBITZEE
@IBITZEE 4 жыл бұрын
nice thinking... nice tests... CCC thx !
@arunsatyarth9097
@arunsatyarth9097 4 жыл бұрын
Thanks for your videos Hussein. Really beneficial and love your presentation style...
@hnasr
@hnasr 4 жыл бұрын
arun satyarth thanks Arun!! ❤️ glad you like the content
@sachinkalkur
@sachinkalkur 3 жыл бұрын
These short videos are extremely informative.
@hnasr
@hnasr 3 жыл бұрын
Glad to hear that!
@ahmedkhudhair8035
@ahmedkhudhair8035 4 жыл бұрын
Very nice ❤️
@AAZinvicto
@AAZinvicto 4 жыл бұрын
Thank you bro for such informative videos. Love from India. Ma-as-salama
@hnasr
@hnasr 4 жыл бұрын
AAZinvicto much love to all my subs from India 🇮🇳❤️
@arpitpandey8797
@arpitpandey8797 4 жыл бұрын
You reminded of me Dora the explorer 😅... Great video
@6Sambora
@6Sambora 4 жыл бұрын
Was about to ask you to do the same with MongoDB until the end of the video, when you mention NoSQL does not have isolation level haha
@hnasr
@hnasr 4 жыл бұрын
Kid Amador we can do some of things of not all of it. 😊 MongoDB is a different beast with different set of features
@simon66668
@simon66668 3 жыл бұрын
At the document level, MongoDB already supports ACID transactions
@ramonberrutti
@ramonberrutti 4 жыл бұрын
Nice explain, you just forgot the deadlock case, inserting in a different order in each transaction
@hnasr
@hnasr 4 жыл бұрын
Nice idea for another video forgot to mention it! Thanks 🙏
@8Trails50
@8Trails50 3 жыл бұрын
Sorry can you expand, what do you mean by this?
@adarshupadhyay8265
@adarshupadhyay8265 2 жыл бұрын
But how you were able to see the insert result without Commit operation in the beginning?
@MrDecorative
@MrDecorative 3 жыл бұрын
If the database is replicated, and the leader is processing a write with id 1 , and then crashes for some reason before those changes has been yet replicated to the follower which is elected to be the new leader , this new leader wouldn’t be aware of the key 1 which already exists , and after a while when the system gets eventual consistency, boom 💥 a problem in the system. This bug happened at github in 2011 with auto incrementing key 🔐
@AShahabov
@AShahabov 4 жыл бұрын
But what about when two transactions insert duplicate values in a NON-INDEX column? One of the transaction also will be blocked?
@hnasr
@hnasr 4 жыл бұрын
Hey Adam, if the column doesn't have a unique index, it is absolutely fine to duplicate values between transactions.
@ankitraj9684
@ankitraj9684 4 жыл бұрын
A video on log structured merge tree?
@hnasr
@hnasr 4 жыл бұрын
Ankit Raj soon! Not yet, 👍
@NivekMoto59
@NivekMoto59 4 жыл бұрын
it not ACID the word you search??
Why Idempotency is very critical in Backend Applications
8:59
Hussein Nasser
Рет қаралды 22 М.
How Do Databases Store Tables on Disk? Explained both SSD & HDD
18:56
Hussein Nasser
Рет қаралды 26 М.
Survival skills: A great idea with duct tape #survival #lifehacks #camping
00:27
когда повзрослела // EVA mash
00:40
EVA mash
Рет қаралды 3,5 МЛН
孩子多的烦恼?#火影忍者 #家庭 #佐助
00:31
火影忍者一家
Рет қаралды 32 МЛН
Became invisible for one day!  #funny #wednesday #memes
00:25
Watch Me
Рет қаралды 21 МЛН
Is there a Limit to Number of Connections a Backend can handle?
18:43
Hussein Nasser
Рет қаралды 32 М.
I've been using Redis wrong this whole time...
20:53
Dreams of Code
Рет қаралды 333 М.
Publish-Subscribe Architecture (Explained by Example)
30:03
Hussein Nasser
Рет қаралды 115 М.
When to use a Publish-Subscribe System Like Kafka?
8:53
Hussein Nasser
Рет қаралды 30 М.
Working With Database Transactions In EF Core
14:11
Milan Jovanović
Рет қаралды 18 М.
Column vs Row Oriented Databases Explained
34:16
Hussein Nasser
Рет қаралды 73 М.
How CPU Efficient is your App?
19:50
Hussein Nasser
Рет қаралды 13 М.
REST API - Concurrency in REST
3:49
Tutorialspoint
Рет қаралды 27 М.
Best Practices Working with Billion-row Tables in Databases
13:41
Hussein Nasser
Рет қаралды 66 М.
Спутниковый телефон #обзор #товары
0:35
Product show
Рет қаралды 1,9 МЛН
Will the battery emit smoke if it rotates rapidly?
0:11
Meaningful Cartoons 183
Рет қаралды 40 МЛН
Main filter..
0:15
CikoYt
Рет қаралды 13 МЛН
Hisense Official Flagship Store Hisense is the champion What is going on?
0:11
Special Effects Funny 44
Рет қаралды 2,5 МЛН