codingapi / codingapi/tx-lcn

能否在配置文件中增加一个lcn控制开关

Offen
#322 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
features
Vorherrschende Sprache
Java
Sterne
4.2k
Forks
1.4k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

## Why you need it?
Is your feature request related to a problem? Please describe in details
我们有些项目,根据客户的场景需求,在部署的时候才能决定是否开启分布式事务(比如如果用不到lcn,就不用部署tm等)。因为是在部署阶段决定,所以通过修改代码@EnableDistributedTransaction的方式不太合适。
能否设置一个开关来控制lcn的启动与否,比如通过配置文件里面的某个参数来控制。

## How it could be?
A clear and concise description of what you want to happen. You can explain more about input of the feature, and output of it.
设置一个开关来控制lcn的启动与否,并且不用改代码的前提下,比如通过配置文件里面的某个参数来控制。

## Other related information
Add any other context or screenshots about the feature request here.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Start by locating the handling for @EnableDistributedTransaction and the configuration-loading entry point. Trace how startup currently enables LCN, then define a configuration property that controls that behavior without code changes. Done means deployment configuration can enable or disable LCN consistently, with tests covering both settings.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
java
Bereich
backend, distributed-systems
Issue-Typ
Feature
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.