본문 바로가기

Spring.io

Srping.io -> Reactive

Project Reactor

Project Reactor는 back-pressure 기능이 포함 된 완전 non-blocking 기반이며, Spring WebFlux, Spring Data 및 Spring Cloud Gateway와 같은 프로젝트에 반응성 스택의 기초가 됩니다.

 

Learn more

Reactive Microservices

Reactive 코드는 적은 리소스로 더 많은 작업을 수행합니다. Project Reactor와 Spring WebFlux를 통해 개발자는 잠재적으로 많은 수의 동시 연결을 처리하는 멀티 코어 차세대 프로세서를 활용할 수 있습니다. Reactive처리를 사용하면 더 적은 수의 마이크로 서비스 인스턴스로 더 많은 동시 사용자를 만족시킬 수 있습니다.

(즉, Reactive는 Microservice환경에서 서비스 인스턴스 수를 최소화 할 수 있는 프로그래밍 기술입니다.) 

Reactive Microservices With Spring Boot

스프링은 두 개의 병렬 Stack을 제공합니다.

 

1) Reactive Stack(WebFlux) : non-blocking/asynchronous 시스템

2) Servlet Stack(Spring MVC) : blocking/synchronous 시스템

Integration with common technologies

Reactive 방식으로 데이터에 액세스하고 처리하는 것이 중요합니다. MongoDB, Redis 및 Cassandra는 모두 Spring Data에서 기본 지원을 제공합니다. 또한, 관계형 데이터베이스(Postgres, Microsoft SQL Server, MySQL, H2 및 Google Spanner)는 R2DBC(Reactive Relational Database Connectivity)를 통해 지원합니다. 

Messaging 환경에서 Spring Cloud Stream은 RabbitMQ 및 Kafka와 같은 플랫폼에 대한 Reactive 액세스도 지원합니다.

'Spring.io' 카테고리의 다른 글

Srping.io -> Event Driven  (0) 2020.07.27
Srping.io -> Serverless  (0) 2020.07.27
Srping.io -> Web Applications  (0) 2020.07.27
Srping.io -> Cloud  (0) 2020.07.27
Srping.io -> Microservices  (0) 2020.07.25