2023-09-14-TIL

Today I Learned

Redis Pipeline

레디스 파이프라이닝을 사용하는데 gc가 제대로 안 되는지 메모리 사용량 그래프가 계속 peek를 치고있다. 그리고 이어서 타임아웃이 발생하면서 뻗는 경우가 종종 있다. 원인이 뭘까?

  • https://redis.io/docs/manual/pipelining/
  • https://taegyunwoo.github.io/redis/Redis_Redis_Tutorial_Pipelining
  • https://blog.opstree.com/2019/04/16/redis-best-practices-and-performance-tuning/

Redis Pipeline Timeout

  • https://stackoverflow.com/questions/23930125/how-to-set-the-redis-timeout-waiting-for-the-response-with-pipeline-in-redis-py
  • https://github.com/redis/redis-py/issues/485
  • https://stackoverflow.com/questions/29327544/pipelining-vs-transaction-in-redis
  • https://yakolla.tistory.com/44

Redis Operator

  • https://operatorhub.io/operator/redis-operator
  • https://docs.redis.com/latest/kubernetes/architecture/operator/

Redis Stream

  • https://kingjakeu.github.io/page2/

Redis Pub/Sub vs Redis Stream

  • https://dev-swlee.tistory.com/27

Java Loom Kotlin Dispatcher

  • https://www.youtube.com/watch?v=zluKcazgkV4
  • https://apiumhub.com/tech-blog-barcelona/project-loom-and-kotlin-some-experiments/
  • https://www.ciokorea.com/news/228714
  • https://www.reddit.com/r/Kotlin/comments/l2kjdf/use_kotlin_dispatcher_as_executor_or_use_java/
  • https://refactorizando.com/en/coroutines-in-kotlin-vs-java-threads/

Java Loom

  • https://openjdk.org/projects/loom/
  • https://velog.io/@recordsbeat/Project-Loom-%EC%83%88%EB%A1%9C%EC%9A%B4-%ED%8C%A8%EB%9F%AC%EB%8B%A4%EC%9E%84%EC%9D%BC%EA%B9%8C

npm vs yarn vs pnpm

  • https://engineering.ab180.co/stories/yarn-to-pnpm
  • https://yceffort.kr/2022/05/npm-vs-yarn-vs-pnpm
  • https://medium.com/@simonescigliuzzi/npm-vs-yarn-vs-pnpm-whats-the-best-abd99fa0f288
  • https://rushjs.io/pages/maintainer/package_managers/

Spring은 LSP를 잘 지키는게 아닌것 같다?

리스코프 치환 원칙은 하위 객체가 상위 객체의 타입으로 교체할 수 있어야 한다는 것이다. 그런데 자바의 Collections에서 List와 ArrayList만 보아도 List로 교체가 가능하지만 ArrayList의 내부 동작은 List 인터페이스에 정의된 메서드 시그니처만으로 충분히 유추할 수 있는것이 아니다. 다시 말해, 예상 못 한 행동이 얼마든지 가능하다는 것이다. "상위 타입의 객체를 하위 타입의 객체로 치환해도 상위 타입을 사용하는 프로그램은 정상적으로 동작해야 한다."에서 정상적으로 동작한다는 부분이 종종 어긋난다.

Today I Studied

Boolean

  • https://ko.wikipedia.org/wiki/%EB%B6%88_%EB%8C%80%EC%88%98#:~:text=%EC%88%9C%EC%84%9C%EB%A1%A0%EA%B3%BC%20%EC%B6%94%EC%83%81%EB%8C%80%EC%88%98%ED%95%99,%EC%A0%95%EC%9D%98%EB%90%9C%20%EB%8C%80%EC%88%98%20%EA%B5%AC%EC%A1%B0%EC%9D%B4%EB%8B%A4.

NAND, NOR가 복잡한 이유

  • https://hunter-trader.tistory.com/151

차동모드 vs 공통모드

  • https://techweb.rohm.co.kr/know-how/nowisee/6899/#:~:text=%EA%B3%B5%ED%86%B5%20%EB%AA%A8%EB%93%9C%20%EB%85%B8%EC%9D%B4%EC%A6%88%EB%8A%94%20%EA%B8%B0%EC%83%9D,(Common%20mode)%EB%9D%BC%EA%B3%A0%20%ED%95%A9%EB%8B%88%EB%8B%A4.

Full Adder and Half Adder

  • https://ko.wikipedia.org/wiki/%EA%B0%80%EC%82%B0%EA%B8%B0#:~:text=%EC%A0%84%EA%B0%80%EC%82%B0%EA%B8%B0(%E5%85%A8%E5%8A%A0%E7%AE%97%E5%99%A8,%EC%9D%98%20OR%EB%A1%9C%20%EA%B5%AC%EC%84%B1%EB%90%9C%EB%8B%A4.
  • https://www.build-electronic-circuits.com/full-adder/