Spring Web vs Spring Webflux

zion·2023년 7월 2일
0

spring

목록 보기
1/1

Spring Web : Servlet API 위에 만들어진 웹 프레임워크

  • blocking I/O

  • synchronous communication

  • 낮은 동시성을 요구하는 소규모 어플리케이션

  • 응답을 받을 때까지 스레드가 막혀, CPU/메모리 사용량이 높다.

Spring Webflux : Reactive Streams 위에 만들어진 반응형 웹 프레임워크

  • non-blocking I/O

  • 스트리밍 웹, 실시간 데이터 프로세싱

  • 높은 동시성을 요구하는 대규모 어플리케이션

  • 응답을 받을 때까지 기다리지 않아, CPU/메모리 사용량이 낮다.

Spring Web : Mono and WebClient

Spring Webflux : RestTemplate and ResponseEntity

출처:https://medium.com/@burakkocakeu/spring-web-vs-spring-webflux-9224260c47b5

profile
be_zion

0개의 댓글