David Shergilashvilidshergilashvili.hashnode.dev·Oct 21, 2024Advanced Concurrency Management StrategiesIntroduction In the realm of modern software engineering, mastering concurrency management is not just a technical necessity—it's a critical business imperative. This comprehensive guide delves into advanced concurrency strategies that can significan...Discusssoftware development
Myoneemyonee.hashnode.dev·Aug 1, 2024[E-commerce] Point Service포인트 충전 파사드? /** * Spring Data JPA에서 낙관적락 사용시 * 버전 충돌 시 Hibernate는 StaleStateException을 발생시킴 * Spring은 이를 OptimisticLockingFailureException으로 래핑하여 처리 * */ @Slf4j @Component @RequiredArgsConstructor public class ChargePointUseCase { private fin...Discuss·1 likeecommerce
Myoneemyonee.hashnode.dev·Jul 29, 2024[트러블 슈팅] 재고 관리 서비스의 동시성 테스트 및 문제 해결(2) - Redis LockRedis 설정 Lettuce Netty기반(비동기 이벤트 지원) 성능↑ 지연시간↓ PipeLining지원(Redisson 보다 뛰어남) spring-data-redis의 기본 구현체 기본 Spin Lock 사용 - Lock을 대기하는 상황에서, Lock을 획득할 수 있는지 계속 요청 따라서 Lock을 획득하려는 스레드가 많을 경우 Redis에 부하집중 Lock에 대한 타임아웃이 없어, Unlock(잠금 해제) 호출을 하지 못한 경...Discuss·1 like·49 readsconcurrency
Myoneemyonee.hashnode.dev·Jul 24, 2024[트러블 슈팅] 재고 관리 서비스의 동시성 테스트 및 문제 해결(1) - DB Lock동시성 환경에 대한 이해 스프링 부트는 멀티 스레드 환경이기 때문에 여러 스레드가 동시에 데이터에 접근하고 수정할 수 있고, 이 때 동시성 관련 문제가 발생한다. 경쟁 상태 (Race Condition) 여러 스레드가 동시에 데이터를 수정할 때 "경쟁 상태(Race Condition)"가 발생할 수 있다. 서로의 변경사항을 고려하지 못할 때 데이터 일관성이 깨질 수 있는 것이다. 데드락 (Deadlock) 두 개 이상의 트랜잭션이 서로가 소...Discuss·10 likes·35 readslock
Nachiappan Kumarappandev-chronicle.hashnode.dev·May 27, 2024Mutex(lock) with C# exampleIn previous blog posts, we've observed that Threads/Tasks have the capability to run concurrently (more accurately, pseudo-concurrently). Additionally, we've explored how it's the responsibility of the operating system to manage thread scheduling. Th...Discuss·40 readsshared-resources
André Felipe Costa Bentobentodev.hashnode.dev·May 15, 2024Table Locking Using Spring: A Comprehensive GuideIntroduction In applications that use databases, it is common to need to control concurrent access to data to avoid inconsistencies and ensure integrity. Table locks are an essential technique to achieve this goal. In this article, we will explore wh...Discuss·39 readsTable lock
Raineraineyang.hashnode.dev·Dec 25, 2023Rust Learning Note: Thread Sychronizationthis article is a summary of Chapter 4.6.3 - 4.6.6 of Rust Course (course.rs/) Multiple Producer Single Consumer The Rust standard library provides a channel among multiple threads called std::sync::mpsc. mpsc is short for multiple producer, single c...Discuss·36 readsmpsc
Prasoon Abhinawblog.pabhinaw.dev·Aug 12, 2023Mastering C#: Unraveling the Power of C# & OOPSIntroduction You might have already come across this multithreading word or multithreading concept in C# .NET, or in any other programming language. Here, in this article, I’ll try to explain the concept in an easy way. I’ll try focusing on what is m...Discuss·42 readsC#
Mladen Drmacsenselessevents.hashnode.dev·Jul 26, 2023File lockingWe are continuing our journey through Unix IPC by looking at the concept of file locking. If you want to know how multiple processes can access the same file without causing chaos, let's dive right in! File locking allows us to coordinate read and wr...Discuss·87 readsInter-process communication in Unixunix
Antoine LOIZEAUblog.smartcloudarchitect.fr·Jun 29, 2023Créer une alerte sur la suppression d'un lock AzureEn utilisant les verrous dans Azure, vous pouvez vous assurer qu'aucune modification non autorisée ou accidentelle n'est apportée à vos ressources, ce qui contribue à renforcer la sécurité et la gestion des risques dans votre environnement Azure. Ajo...Discuss·627 readsAzureAzure