TPL vs Reactive Framework

后端 未结 5 1080
礼貌的吻别
礼貌的吻别 2020-12-13 12:39

When would one choose to use Rx over TPL or are the 2 frameworks orthogonal?

From what I understand Rx is primarily intended to provide an abstraction over events an

5条回答
  •  时光说笑
    2020-12-13 13:00

    Some guidelines I like to follow:

    • Am I dealing with data that I don't originate. Data which arrives when it pleases? Then RX.
    • Am I originating computations and need to manage concurrency? Then TPL.
    • Am I managing multiple results, and need to choose from them based on time? Then RX.

提交回复
热议问题