Awesome Open Source
Awesome Open Source

license Build Status Coverage Status Go Report Card Go Reference Mentioned in Awesome Go

English Docs

DTMgolang

dtm

Ivydad

Eglass

    • HTTP
    • gopythonphpnodejsrubyc#
    • mysql
    • TCCSAGAXA

JavaJavaSEATAServiceComb-Packshardingspherehimlytcc-transactionByteTCCseata

dtmseata

DTM SEATA
GoJavapythonphpc#... Java dtm
dtm
TCC
XA
AT XA ATXA
SAGA
dtmrocketmq
HTTPgRPC dubboHTTP dtm
star github stars github stars dtm202106040.1

JavadtmJavadtm

git clone https://github.com/yedf/dtm && cd dtm

dtmmysql

docker 20.04+

docker-compose -f helper/compose.mysql.yml up

mysqldtm

cp conf.sample.yml conf.yml # conf.yml

saga

go run app/main.go qs

  // 
  const qsBusi = "http://localhost:8081/api/busi_saga"
  req := &gin.H{"amount": 30} // 
  // DtmServerDTMurl
  DtmServer := "http://localhost:8080/api/dtmsvr"
  saga := dtmcli.NewSaga(DtmServer, dtmcli.MustGenGid(DtmServer)).
    // TransOuturl: qsBusi+"/TransOut" url: qsBusi+"/TransOutCompensate"
    Add(qsBusi+"/TransOut", qsBusi+"/TransOutCompensate", req).
    // TransInurl: qsBusi+"/TransIn" url: qsBusi+"/TransInCompensate"
    Add(qsBusi+"/TransIn", qsBusi+"/TransInCompensate", req)
  // sagadtm/
  err := saga.Submit()

TransOutTransIn

saga

examples/quick_start.go

yedf2008 dtm

yedf2008

dtm


Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Python (1,116,833
Java (688,118
Php (391,791
C Sharp (271,652
Go (193,794
Nodejs (53,734
Golang (32,615
Database (9,482
Microservice (5,884
Distributed (1,014
Transaction (689
Saga (152
Tcc (133
Related Projects