마블 다이어그램
-
Mono와 FluxSpring Reactive Web Application/Project Reactor 2023. 7. 22. 09:00
Mono 0개 또는 1개의 데이터를 emit하는 Publisher 입니다. (Compare with RxJava Maybe) 데이터 emit 과정에서 에러가 발생하면 onError signal을 emit 합니다. Note. 마블 다이어그램(Marble Diagram)이란 비동기적인 데이터 흐름을 시간의 흐름에 따라 시각적으로 표시한 다이어그램입니다. import reactor.core.publisher.Mono; /** * Mono 기본 개념 예제 * - 1개의 데이터를 생성해서 emit한다. */ public class Example6_1 { public static void main(String[] args) { Mono.just("Hello Reactor") .subscribe(System.out:..
-
리액티브(Reactive) 프로그래밍 개요BackEnd/RxJava 2023. 7. 1. 07:00
리액티브 프로그래밍(Reactive Programming) In computing, reactive programming is a declarative programming paradigm concerned with data streams and the propagation of change. - wikipedia - declarative programming: 실행할 동작을 구체적으로 명시하는 명령형 프로그래밍과 달리 선언형 프로그래밍은 단순히 목표를 선언합니다. data streams and the propagation of change: 데이터가 변경될 때마다 이벤트를 발생시켜서 데이터를 계속적으로 전달합니다. 명령형 프로그래밍 vs 선언형 프로그래밍 package com.itvillage.chap..