alibaba / alibaba/COLA

application 与 infrastructure 依赖问题

Open
#369 3 comments 2 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
13k
Forks
3.2k
PR merge metrics
No merged PRs in 30d

Description

application 为什么要依赖 infrastructure , 如果是infrastructure来依赖 application ,通过依赖倒置的供应商模式是不是能实现解耦。
前者:application写个queryService来直接调infrastructure的mapper的接口,infrastructure变更需要改application
后者:application写个xxRepository ,infrastructure来实现,这样infrastructure变了不会影响业务

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue does not name files, tests, or entry points. Review the repository's application and infrastructure dependency structure, then clarify whether the project should reverse that dependency through repository abstractions and what scope would count as complete.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.