본문 바로가기

전체 글

(24)
Spring Webflux 동작 원리 및 Spring MVC와의 비교 Spring WebFlux는 비동기(Async) 및 논블로킹(Non-Blocking) 기반의 리액티브 프로그래밍을 지원하는 Spring의 웹 프레임워크이다. 다만, 하지만, 요청마다 Dispatcher Servlet에서 스레드를 하나씩 할당하여 처리하는 비교적 직관적인 Spring MVC와 비교했을 때 Webflux는 조금 어렵다! 적어도 나에게는 그랬다. 그래서 이번 글에서는 Spring Webflux가 어떻게 동작하는지, 그리고 왜 높은 처리량과 확장성에서 강점을 가지는지 알아보고자 한다. Spring MVC vs Webflux특징Spring MVCSpring Webflux프로그래밍 모델Sync / BlockingAsync / Non-Blocking기반 기술Servlet APIReactor, Reac..
CKAD(Certified Kubernetes Application Developer) 합격 후기 및 팁 / 시험 환경 설명 CKAD(Certified Kubernetes Application Developer) 자격증은 쿠버네티스를 운영하는 CNCF(Cloud Native Computing Foundation)와 Linux Foundation에서 주관하는 쿠버네티스 자격 시험이다. 작년에 Linux Foundation에서 할인 이벤트가 있을 때 신청해두었었는데, 신청만 해두고 잊고 살다가 최근에 시험을 보게 되었다. 작년 기준, 신청 이후 1년 내에만 시험을 보면 되고, 응시료는 300불로 꽤 비싼 편이다. 다만, 불합격하게 될 경우 한 번 재시험을 볼 수 있다. 비슷하지만 조금 더 다루는 범위가 넓은 시험으로는 CKA(certified-kubernetes-administrator) 자격증이 있다. 간략하게 나누어보자면, C..
Leetcode: Sliding Window Maximum You are given an array of integers nums, there is a sliding window of size k which is moving from the very left of the array to the very right. You can only see the k numbers in the window. Each time the sliding window moves right by one position. Return the max sliding window. Example 1: Input: nums = [1,3,-1,-3,5,3,6,7], k = 3 Output: [3,3,5,5,6,7] Explanation: Window position Max ------------..
MySQL Transaction Isolation level: REPEATABLE_READ Mode에서의 Lock 이해 Transaction Isolation level에는 READ_UNCOMMITTED, READ_COMMITED, REPEATABLE_READ, SERIALIZABLE 네 가지 종류가 있다. 왼쪽에서 오른쪽으로 갈 수록 강력한 isolation 효과를 볼 수 있지만, 그만큼 동시성이 떨어지게 된다. MySQL에서, 현재의 isolation level은 아래와 같은 SQL로 확인할 수 있다 . mysql> SELECT @@global.tx_isolation; -Global Level +-----------------------+ | @@global.tx_isolation | +-----------------------+ | REPEATABLE-READ | +-----------------------+ 1 r..