marklin-latte / Clean-Architecture-Implement-Study

3 stars 1 forks source link

第二章: use case 層也需要處理 transaction、cache 更新、事件通知這些嗎 ? #4

Open marklin-latte opened 2 years ago

marklin-latte commented 2 years ago

use case 層也需要處理 transaction、cache 更新、事件通知這些嗎 ?

實作的地方應該不是在 usecase,但我比較好奇是『 call 』的地方是在 usecase 裡嗎 ?

cwhsiaoo commented 2 years ago

比較少遇到 XD 我偶爾會用到 transaction ,但我想也許是在 use case 包成像是 onRollback 之類的 callback 讓 Persistence 消化?