跳至主要內容

seata

chanchaw小于 1 分钟languagejava

概述

使用 seata 实现分布式事务,官网open in new window

安装部署

下面是 undo_log 的创建脚本

create table undo_log
(
	id bigint auto_increment comment '自增主键' primary key,
	branch_id bigint not null comment 'branch transaction id',
	xid varchar(128) not null comment 'global transaction id',
	context varchar(128) not null comment 'undo_log context,such as serialization',
	rollback_info longblob not null comment 'rollback info',
	log_status int not null comment '0:normal status,1:defense status',
	log_created datetime(6) not null comment 'create datetime',
	log_modified datetime(6) not null comment 'modify datetime',
	ext varchar(100) default '' null comment '扩展信息'
)
comment 'AT transaction mode undo table';