You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@seata.apache.org by "flypiggyyoyoyo (via GitHub)" <gi...@apache.org> on 2025/06/09 08:40:17 UTC
[I] Refactor Go Store Layer to Separate Business Logic and Data Access [incubator-seata-go]
flypiggyyoyoyo opened a new issue, #836:
URL: https://github.com/apache/incubator-seata-go/issues/836
**What would you like to be added:**
1. Move repository to a engine/core package for business logic.
2. Keep store for data access interfaces and implementations (e.g., store/interface, store/impl/db).
3. Use dependency injection so engine/core depends on interfaces, not concrete database code.
**Why is this needed:**
In the Go implementation, the store package incorrectly mixes high-level business logic (e.g., repository) with low-level data access (e.g., db). This violates the layered architecture used in Java (where engine/repo handles business logic and store handles data access), leading to tight coupling and difficult maintenance.
**Key Problems:**
● store/repository (business logic) and store/db (data access) are grouped in the same package, unlike Java's separation.
● High-level logic directly depends on database implementations (e.g., db.StateLogStore), making it hard to test and extend.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org
Re: [I] Refactor the Saga state machine module architecture to align with the Java version. [incubator-seata-go]
Posted by "Code-Fight (via GitHub)" <gi...@apache.org>.
Code-Fight closed issue #836: Refactor the Saga state machine module architecture to align with the Java version.
URL: https://github.com/apache/incubator-seata-go/issues/836
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org
Re: [I] Refactor Go Store Layer to Separate Business Logic and Data Access [incubator-seata-go]
Posted by "flypiggyyoyoyo (via GitHub)" <gi...@apache.org>.
flypiggyyoyoyo commented on issue #836:
URL: https://github.com/apache/incubator-seata-go/issues/836#issuecomment-2955100991
plz assign to me
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org