Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

第七章:DDD下的隔離層級 - Annie #87

Open
AK4codee opened this issue Jul 27, 2022 · 0 comments
Open

第七章:DDD下的隔離層級 - Annie #87

AK4codee opened this issue Jul 27, 2022 · 0 comments
Labels
question Further information is requested

Comments

@AK4codee
Copy link

AK4codee commented Jul 27, 2022

發文先附圖之同事的說法:

image

這樣的話我是不是能理解成,分散式系統下有提高隔離級別的優勢,既可以確保一致,也不怕效能問題?
(不過同事說 ORM 在底層會去幫我們防止髒讀)

另外在 DDD 的架構底下,如果我已經開始一個事務,已經取出來的實體會被別的事務影響到嗎?
目前我知道的是 ORM 在程式執行到 SaveChangesAsync 的時候才會包成一個交易,並且在同一個 Context 底下一次只能執行一個交易。那這樣應該就不會出現一些事務併發問題吧!
image

@AK4codee AK4codee changed the title 讀寫分離下的隔離層級 - Annie 第七章:讀寫分離下的隔離層級 - Annie Jul 27, 2022
@AK4codee AK4codee changed the title 第七章:讀寫分離下的隔離層級 - Annie 第七章:DDD下的隔離層級 - Annie Jul 27, 2022
@kylemocode kylemocode added the question Further information is requested label Jul 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants