전체 글
-
예전 블로그 URL이전 블로그 작성 글 2024. 3. 25. 12:55
티스토리 블로그 이전 전 네이버 블로그 URL 입니다. https://blog.naver.com/lss9209
-
Mutex와 Coroutine을 이용한 동시 트래픽 시뮬레이션 2 - 테스트Kotlin 2024. 3. 15. 15:44
목차개요왜 코루틴이 동시성 테스트를 하기에 적합한가?코루틴의 기본적 동작방식 설명구현 코드 설명CancellationException의 당위성한계개요이전 글 (https://sseung00921.tistory.com/10)에서 다룬 바 있는 애플리케이션에 대해 코루틴으로 동시성 테스트를 진행하고 설명하는 글입니다. 해당 애플리케이션의 요구사항 및 구현에 대해서는 이전 글을 참조해주시기 바랍니다. 왜 코루틴이 동시성 테스트를 하기에 적합한가?자바에서 동시성 테스트를 위해 ExecuterService.submit()과 같은 API들을 많이 사용해 보셨을 수 있습니다. 이런 API가 필요한 이유는 근본적으로 이러합니다.테스트할 로직을 여러 스레드에 실어줄 하나의 스레드가 필요합니다...
-
Mutex와 Coroutine을 이용한 동시 트래픽 시뮬레이션 1 - 애플리케이션 구현Kotlin 2024. 3. 15. 14:43
목차 개요 애플리케이션 요구사항 실제 구현 소스 코드 및 설명 동시에 트래픽이 몰릴 때 정합성이 깨지는 이유 입출고 요청 자체에 락을 걸어버릴 시의 문제점 인형 Id 별로 락 인스턴스(Mutex)를 제어하여 문제 해결 한계 해당 애플리케이션의 테스트 관련 글 링크 개요 최근에 코틀린 코루틴의 정석(https://www.yes24.com/Product/Goods/125014350)을 읽으며 코루틴을 학습하였습니다. 이에 학습한 내용을 다지고자 모의로 요구사항을 정의하여 애플리케이션을 직접 구현하여보았습니다. 해당 요구사항은 서버개발자 면접이나 과제에서 종종 질문 받은 내용을 바탕으로 구성하였습니다. 애플리케이션 요구사항 인형 재고관리 어플리케이션입니다. 각 인형은 코틀린 Data 클래스로 id와 stock..
-
Watch out before you contribute to Open Source. If you did not set your commit email address in your local Git, Your contribution might not be admitted!Git 2023. 11. 17. 13:46
You contributed Something. But if you are not admitted as a contributor, you will be sad(TT). (If your commit does not presented as green square box in your github profile. Check it. You might miss the setting.) To avoid this mistake, Check this. https://docs.github.com/en/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-email-preferences/setting-your-commit-e..
-
Clearing all 'merge' commit logs from your branch Git tree And Remaining only commit logs Which is Done by You.Git 2023. 11. 17. 13:35
When you want it, you should rebase your local git branch workflow. And this is a perfect guide for it. https://github.com/apache/airflow/blob/main/CONTRIBUTING.rst#how-to-rebase-pr
-
Setting Python Virtual Enverionment With Pyenv.Python 2023. 11. 17. 13:24
Even for someone who will use python in only one everionment(in your local as global), you don't need to install Python from Python official Installer. Acutally, I think you better install python using Pyenv and set your local version of Python instead of installing directly from Python official Installer. This is because you can easily change your python evironment when you suddenly need to sep..