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

一些问题咨询 #11

Closed
busyfree opened this issue Jul 30, 2021 · 4 comments
Closed

一些问题咨询 #11

busyfree opened this issue Jul 30, 2021 · 4 comments

Comments

@busyfree
Copy link

具体业务开发要在dtm框架里面实现?

dtm 里 orm 相关代码可能无法做到db上的分布式,db层分布式怎么实现?上 db proxy 实现?

@yedf2
Copy link
Contributor

yedf2 commented Jul 30, 2021

您能否把您的业务场景,更具体的描述出来?例如你的db上的分布式是指什么?

@busyfree
Copy link
Author

busyfree commented Jul 30, 2021

如涉及到数据量比较大的时候,db需要 分库,分表时,事务这时dtm怎么实现业务上的分布式。

@yedf2
Copy link
Contributor

yedf2 commented Aug 1, 2021

您好,按照微服务的设计原则,大多数情况下一个微服务通常访问一个数据库,一个微服务有一个本地事务。dtm会将多个微服务的本地事务组合成一个分布式事务,保证正确性

对于分库的情况,您只要保证了上述原则,那么就可以采用dtm

如果您的分库是在db proxy层实现,那么需要相关的db proxy对您微服务上的本地事务有支持。

@busyfree
Copy link
Author

busyfree commented Aug 2, 2021

了解,感谢解答。

@busyfree busyfree closed this as completed Aug 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants