Backend(9)
-
A deep dive into Kubernetes controller
Backgrounds 쿠버네티스에서 컨트롤러는 desired state 와 observed state 의 sync 를 담당합니다. 끊임없이 API 서버를 watch 하며 변화를 감지합니다. 예로써 Resplica Set controller 가 있습니다. 이는 desired # of pod 이 변경되는 경우, pods 의 수를 조절해줍니다. 쿠버네티스에서 각각의 컨트롤러는 특정 리소스 하나에 책임을 가집니다. Own Custom Controller 또한 존재합니다. Controller pattern 컨트롤러 페턴에 대한 k8s official documentation 은 아래와 같습니다. In applications of robotics and automation, a control loop is a no..
2020.11.27 -
Nginx deep dive 2020.04.09
-
Code review (Worklog)
- 주석은 최대한 사용하지 말라. 주석을 사용하는 것 보다 readability 가 좋은 코드를 작성하라 - Test code 는 99% 작성하라 - import 에 주의하라 wildcard(*) import 를 사용하지 말라 - Commit message 는 대문자로 시작, 마침표로 닫으라. - 의미없는 Commit message 를 만들지 말라. - 가능하면 Commit message 에 related issue number ex (#17) 를 붙여 tracking 하기 쉽도록 작성하라 - Commit message 는 한줄에 최대한 담을 수 있도록 작성하라.( 그렇지 않다면 commit 을 쪼개라) - 의미없는 PR title 역시 만들지 말라. - SDK 에서는 lombok 을 사용하는 것보다, ..
2020.04.09 -
Apache Avro
Wikipedia def Avro is a row-oriented remote procedure call and data serialization framework developed within Apache's Hadoop project. It uses JSON for defining data types and protocols, and serializes data in a compact binary format. Its primary use is in Apache Hadoop, where it can provide both a serialization format for persistent data, and a wire format for communication between Hadoop nodes,..
2019.11.13 -
Abstract Factory pattern
Wikipedia 는 Abstract factory pattern 에 대해 이렇게 이야기하고있다. The abstract factory pattern provides a way to encapsulate a group of individual factories that have a common theme without specifying their concrete classes. 즉 factories 를 grouping 하는 pattern 이라 할 수 있겠다. In normal usage, the client software creates a concrete implementation of the abstract factory and then uses the generic interface of the ..
2019.11.12 -
State pattern VS strategy pattern, what is the difference?
운동을 하면서, 유투브로 디자인 패턴 관련 영상을 하나씩 보던 중 State pattern 에 대해 보는데, 이전에 보았던 strategy pattern 과 유사하다는 것을 알게 되었다. 그래서 한번 정리하고 가려 한다. wikipedia 는 state pattern 에 대해 이렇게 이야기하고 있다 The state pattern is a behavioral software design pattern that allows an object to alter its behavior when its internal state changes. This pattern is close to the concept of finite-state machines. The state pattern can be interpr..
2019.11.10