The fastest I've ever found a race condition for a UUID in a database

Subscribers:
8,420
Published on ● Video Link: https://www.youtube.com/watch?v=px6V_Evodq8



Duration: 0:09
129 views
1


I'm putting together a class on web scraping and was being lazy when developing a multi-threaded scraping application. I figured there was no way that two threads would scrape two different web pages, return, and attempt to write to the database with a millisecond-level timestamp as a unique, primary key at the exact same time. What you're seeing is the first time I ran the code after implementing the timestamp.

I was IMMEDIATELY proven wrong. Software development has a way of humbling you.

Interested in the course? It will be out by November 11th! Subscribe to the channel for updates on the course as well as web scraping and development content!

--

Twitter:
https://twitter.com/viking_sec
Newsletter:
https://www.vikingsecblog.com/viking-sec-weekly-newsletter/
Blog:
https://vikingsecblog.com/

You can subscribe to my newsletter (or, obviously, to my channel) if you want updates about the course I'm developing or any of my videos. The course is sitting at about 9 hours of raw footage right now all about web scraping with Python: how to design it, how to design it ethically, how to develop it, how to maintain it and how to level it up. Gonna be honest, I'm super proud of it thus far!

--
#Coding #WebScrapers #Python




Other Videos By Mitch Edwards (@valhalla_dev)


2021-12-03RRE 3: Re-Learning C/C++ for Malware Development
2021-12-01Using Flask Templates to Build Simple API Dashboards
2021-12-01Python Tips 02: Filtering Arrays with Lambdas!
2021-11-18Python Tips 01: Slice and Dice Arrays!
2021-11-18Use the Shodan API to Find Hidden Databases and Other Internet Secrets!
2021-11-16Python for Absolute Beginners Episode 2: All Things Arrays!
2021-11-11Python for Absolute Beginners Episode 1: Installation and Variables!
2021-11-10[Free Web Scraping Class] Scrape the Planet 4.7 - Building a Spider to Crawl Wikipedia using Python!
2021-11-10[Udemy Course Announcement] Scrape the Planet: Web Scraping with Python!
2021-11-09Building Web Application API's with the Python Flask Library
2021-11-05The fastest I've ever found a race condition for a UUID in a database
2021-11-03What is an API? Application Programming Interfaces Explained
2021-11-03We All Write Dumb Code #Shorts #Coding
2021-11-01[Channel Update] I'm Back Again: Udemy Course, Newsletter, Blog, and New Channel Stuff!
2020-07-15[ReactJS Dev Stream Ep. 1] Developing SketchyReq + Learning Website Design in ReactJS!
2020-06-04[#BlackLivesMatter Hacking Racism (DONATE!)] Building an Anonymous Police Brutality Reporting Site
2020-06-04[#BlackLivesMatter Hacking Racism (DONATE!)] Building an Anonymous Police Brutality Reporting Site
2020-05-27Hack the Box CTF - DEVEL
2020-05-22Hack the Box CTF - Lame
2020-05-21Hacking with Zero Jail-Time: An introduction to CTF's
2020-05-15[0x00 to Hero] Episode 3: Easy Reverse Engineering Challenges