Flutter/Study

[Flutter] Remi Rousselet 가 생각하는 Riverpod 을 이용한 프로젝트의 Architecture

상빼 2022. 10. 6. 14:38
Riverpod is a pattern on its own. You're not using "Riverpod + ". Riverpod is the pattern, since it's fairly strict in what you can and can't do

I don't like associating Riverpod with standards like MVC/MVVP. Riverpod is a big of an odd one. I don't think they truly fit.

I feel Riverpod has a different kind of architecture: reactive caching with uni-directional dataflow and ideally immutable data.Although if I had to pick one, MVC works alright with Riverpod.
[번역]
Riverpod는 그 자체로 패턴입니다. "Riverpod +"를 사용하고 있지 않습니다. Riverpod는 패턴입니다. 할 수 있는 것과 할 수 없는 것이 상당히 엄격하기 때문입니다. 

저는 Riverpod를 MVC/MVVP와 같은 표준과 연결하는 것을 좋아하지 않습니다. Riverpod는 이상한 것의 큰 것입니다. 

나는 그들이 정말로 적합하다고 생각하지 않습니다. Riverpod에는 다른 종류의 아키텍처가 있다고 생각합니다. 단방향 데이터 흐름과 이상적으로는 변경할 수 없는 데이터를 사용한 반응형 캐싱입니다. 하나를 선택해야 하지만 MVC는 Riverpod에서 잘 작동합니다.

출처: https://github.com/rrousselGit/riverpod/discussions/1137