2021-01-25-TIL

State Pattern

  • https://victorydntmd.tistory.com/294

비동기, promise

동기와 비동기

요청 시점에서 결과가 바로 나오는가? 바로 나오지 않는가? 동기카페에서는 커피가 나올때까지 마냥 기다려야한다. 비동기는 커피가 나올때까지 기다리지 않는다. 아무거나 할 수 있다. 그러면 커피는 어떻게 받는가? 진동벨이 울리면 받으러간다. (이벤트가 발생하면 받는다.) 커피를 받으러 가는 것은 내 마음이다. (이벤트 핸들러가 있다면 받으러 가도록 작성)

Synchronous vs Asynchronous in Java

  • https://www.javatpoint.com/understanding-synchronous-vs-asynchronous
  • https://jongmin92.github.io/2019/03/31/Java/java-async-1/
  • https://www.geeksforgeeks.org/asynchronous-synchronous-callbacks-java/
  • https://www.quora.com/What-is-asynchronous-and-synchronous-in-Java
  • https://pediaa.com/what-is-the-difference-between-synchronous-and-asynchronous-calls-in-java/
  • http://homoefficio.github.io/2017/02/19/Blocking-NonBlocking-Synchronous-Asynchronous/

Synchronous vs Asynchronous

  • https://blog.metafor.kr/164
  • https://velog.io/@daybreak/%EB%8F%99%EA%B8%B0-%EB%B9%84%EB%8F%99%EA%B8%B0-%EC%B2%98%EB%A6%AC
  • https://developer.ibm.com/articles/defining-the-term-reactive/
  • https://has3ong.github.io/syncasync-nonblock/
  • https://musma.github.io/2019/04/17/blocking-and-synchronous.html
  • https://victorydntmd.tistory.com/8
  • https://code-masterjung.tistory.com/69
  • https://dzone.com/articles/synchronous-vs-asynchronous-programming
  • https://private.tistory.com
  • https://stackoverflow.com
  • https://jordy-torvalds.tistory.com/13
  • https://sabarada.tistory.com/99
  • https://pjh3749.tistory.com/280
  • https://webclub.tistory.com/605

Synchronous, Asynchronous, Blocking, NonBlocking

  • https://victorydntmd.tistory.com/8
  • https://homoefficio.github.io/2017/02/19/Blocking-NonBlocking-Synchronous-Asynchronous/
  • https://has3ong.github.io/syncasync-nonblock/
  • https://musma.github.io/2019/04/17/blocking-and-synchronous.html
  • https://developer.ibm.com/technologies/linux/articles/l-async/

Event bus

  • https://kwonnam.pe.kr/wiki/java/guava/eventbus

Completable Future / Future , 자바 컨커런트 패키지 <- 추천

notify, wait

토비, 케빈의 리액티브 자바, RX자바

구글 구아바 라이브러리

  1. 배울점이 많이 없다.
  2. 일정에 대한 압박때문에 양질의 결과가 나오기 힘들다.
  3. 개발과 유지보수가 분리되어서 의사소통이 안된다. -> 개발따로, 유지보수 따로

간단한 애플리케이션은 node가 훨씬 성능에 유리

블록과 논블록

공부할거리

  • https://edu.nextstep.camp/c/DANlbea1/
  • SQL첫걸음
  • 도메인 드리븐 디자인
  • Jetbrans academy
  • 알고리즘 사이트에 ‘구현' 카테고리

모더레이터?ㅋㅋㅋ

lock은 공간에서 공유의 개념, 메모리 공유의문제, 동기 비동기는 시간의 공유개념

synchronous는 synchronize가 필요 x

asynchronous는 synchronize가 필요

blocking의 주체가 누구고, 목적어가 무엇인지가 단어의 의미를 포함

NIO는 면접에서 물어본다.