<aside> 📌 Resilience4J

</aside>

<aside> 📌 Circuit breaker의 상태

</aside>

Untitled

Untitled

  1. closed에서 open으로 변경

  2. open에서 half open으로 변경

  3. half open에서 open 혹은 closed로 변경

<aside> 📌 Reactor의 transform 연산자

</aside>

public final <V> Mono<V> transform(
	Function<? super Mono<T>, ? extends Publisher<V>> transformer) {
		...
}

public final <V> Flux<V> transform(
	Function<? super Flux<T>, ? extends Publisher<V>> transformer) {
		...
}
@Test
void reactorTransformWithError() {
		//given
		Flux<Integer> flux = Flux.error(new ArithmeticException());

		//when
		Function<Flux<Integer>, Flux<Integer>> transformer = (m) -> Flux.just(1);

		//then
		StepVerifier.create(flux.transform(transformer))
							.expectNext(1)
							.verifyComplete();
}