Post

2023-01-11-TIL

2023-01-11-TIL

Today I Learned

Docker + Wasm

  • https://www.docker.com/blog/docker-wasm-technical-preview/
  • https://docs.docker.com/desktop/wasm/

WebAssembly

  • https://tecoble.techcourse.co.kr/post/2021-11-24-web-assembly/

Goroutine, Coroutine, and Java 19 Virtual Thread

  • https://medium.com/@14407744/go-goroutine-vs-java-19-virtual-thread-vs-kotlin-coroutines-664defdaad95
  • https://itnext.io/kotlin-coroutines-vs-java-virtual-threads-a-good-story-but-just-that-91038c7d21eb
  • https://medium.com/javarevisited/how-to-use-java-19-virtual-threads-c16a32bad5f7
  • https://discuss.kotlinlang.org/t/kotlin-coroutines-or-jvm-virtual-threads/24050/4
  • https://www.javai.net/post/202209/java19-vt/

Sync, Async, Blocking, Non-Blocking

  • https://black7375.tistory.com/90
  • https://goodgid.github.io/Blocking-NonBlocking-Synchronous-Asynchronous/
  • https://stackoverflow.com/questions/2625493/asynchronous-and-non-blocking-calls-also-between-blocking-and-synchronous
  • https://jh-7.tistory.com/25
  • https://velog.io/@maketheworldwise/SyncAsync-BlockingNon-Blocking-%EB%AC%B4%EC%8A%A8-%EC%B0%A8%EC%9D%B4%EC%9D%BC%EA%B9%8C
  • https://musma.github.io/2019/04/17/blocking-and-synchronous.html
  • https://developer.ibm.com/articles/l-async/
  • https://homoefficio.github.io/2017/02/19/Blocking-NonBlocking-Synchronous-Asynchronous/
  • https://interconnection.tistory.com/141
  • https://haneepark.github.io/2021/07/18/blocking-nonblocking-sync-async/

@RequestPart

  • https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/web/bind/annotation/RequestPart.html
  • https://somuchthings.tistory.com/160?category=983431

선분이력

  • https://moons08.github.io/programming/history_management/

AWS KMS

  • https://docs.aws.amazon.com/ko_kr/kms/latest/developerguide/concepts.html
  • https://bluese05.tistory.com/71

Spring File Upload

파일 업로드 시 하나의 API에서 MultiPart로 다 받는지, 아니면 별도의 API로 두 번 요청하는지? 인스타그램의 경우, 이미지 업로드 시에 먼저 서버측에 API를 호출해서 등록된 이미지의 id를 발급받는다. 그리고 발급된 이미지 id와 함께 게시물을 등록한다. 이때 이미지 id가 없으면 에러가 발생하거나, 이미지가 없는 채로 등록되는 등 정책에 따라 수행하면 될 것이다.

Get Content Type from HttpServletRequest

  • https://www.tabnine.com/code/java/methods/javax.servlet.http.HttpServletRequest/getContentType
  • https://docs.oracle.com/javaee/6/api/javax/servlet/ServletRequest.html#getContentType()

Todo

  • Logback 정리
  • Virtual Thread 정리
  • AOP로 Reqeust Body 로깅 정리
This post is licensed under CC BY 4.0 by the author.