Davidegavide.hashnode.dev·Sep 16, 2024Understanding and Preventing Race Conditions in Web ApplicationsThis article aims to correct a subtle but dangerous bad practice that is often overlooked. I will demonstrate practical examples using Python, FastAPI and PostgreSQL, and I will provide various solutions for the problem, each with its own trade-offs....Discuss·3 likes·184 readsSecurity
Le Quoc Cuongnospaceavailable.hashnode.dev·Aug 27, 2024Đôi dòng về file system trong LinuxTrong một Linux system tồn tại rất nhiều kiểu file khác nhau, thường thấy là các file thực thi, file ASCII text, vv. Chúng đều được chia ra và lưu trong các directory khác nhau, nhưng nhìn chung một hệ thống Linux sẽ có các directory sau: Tuy nhiên ...Discuss·45 readsLinux
Seyi Ogunjuyigbeseyiogunjuyigbe.hashnode.dev·Apr 20, 2024How to Avoid Race Conditions in MongoDB with Redis Distributed LocksIntroduction In concurrent systems where multiple operations can access the same resources simultaneously, race conditions can occur, leading to data inconsistencies and undesired outcomes. MongoDB, a popular NoSQL database, provides powerful capabil...DiscussRedis
Iwan Prakosoiwandp.my.id·Mar 29, 2024Handle Race Condition with Laravel Cache LockRecently I stumbled upon a race condition issue in one of my project. I am using Laravel and there are two approach that I can think of at the time. Using atomic lock at database level or using Laravel cache lock. The Problem The function for my race...Discuss·41 readsrace-condition
Chris Dourisdigitalcreations.hashnode.dev·Feb 23, 2024Day 18/100 100 Days of CodeConcurrency is a feature that is not aimed at beginner developers. It is important to understand it properly as it can be very confusing and cause problems that might be difficult to understand. I hit a brick wall during the development of Info Hunte...Discuss100 Days of CodeC++
Basel Rabiabaselrabia.hashnode.dev·Jul 4, 2023Race Detector (go run -race) and Synchronizing Concurrency in GoData races are among the most common and hardest to debug types of bugs in concurrent systems. A data race occurs when two goroutines access the same variable concurrently and at least one of the accesses is a write. 🚀 Data Race Detector enables Det...Discuss·143 readsGo Language
Harsh Mangeharshmange.hashnode.dev·Apr 30, 2023What is a Race Condition and How to Prevent it in Your ProgramsWhat the heck is Race Condition? A race condition is a software bug that occurs when the correctness of a system depends on the order or timing of events that occur in the system, but the order or timing is not guaranteed. In other words, it is a sit...Discuss·30 readsrace-condition
Nasirnasirmomin.hashnode.dev·Mar 19, 2023ACTORs, a way to avoid RACE condition in SwiftWhat is a race condition in general? A race condition is an event that occurs when two or more threads/processes access shared data and try to modify it at the same time, which leads to unpredictable behaviour. The output completely depends on the ti...Discuss·42 readsactors
Alexandre Alcuvillaswiftuicentral.com·Jan 12, 2023SwiftUI - TDD actor to avoid race conditionProblem: How to avoid threading race conditions in your class? Solution: Use actor that handles all the concurrency for you! Code that runs synchronously is easy to manage and understandBut when start introducing threads, problems occurYou need to ma...Discuss·5 likes·254 readsactor
Shashank Bhat G Sshashankbhatgs.hashnode.dev·Jul 6, 2022Race Condition in Operating SystemsA Race Condition in OS is a scenario that occurs in a multithreaded environment due to multiple threads sharing the same resource or executing the same piece of code. When the concurrently executing threads access the same shared data, it may affect...Discuss·3 likes·27 readsoperating system