当前位置:网站首页>DBPack SQL Tracing 功能及数据加密功能详解
DBPack SQL Tracing 功能及数据加密功能详解
2022-08-01 16:58:00 【InfoQ】
SQL Tracing
traceparenttraceparent00-85d85c3112590a76d0723eed4326dbd8-81e51018180f4913-01fmt.Sprintf("%.2x-%s-%s-%s",
supportedVersion,
sc.TraceID(),
sc.SpanID(),
flags)TraceIDSpanIDtraceparentupdate /*+ XID('gs/aggregationSvc/72343404027518979') TraceParent('00-85d85c3112590a76d0723eed4326dbd8-81e51018180f4913-01') */ product.inventory set available_qty = available_qty - ?, allocated_qty = allocated_qty + ? where product_sysno = ? and available_qty >= ?
trace:
jaeger_endpoint: http://jaeger:14268/api/traces # 替换为实际的 jaeger 地址
数据加密
WHERECryptoFilterexecutors:
- name: redirect
mode: sdb
config:
data_source_ref: employees
filters:
- cryptoFilter
filters:
- name: cryptoFilter
kind: CryptoFilter
conf:
column_crypto_list:
- table: departments
columns: ["dept_name"]
aeskey: 123456789abcdefgdepartmentsdept_name- 插入操作:
INSERT INTO departments (id,dept_no,dept_name) VALUES (1,'1001','sunset')
INSERT INTO departments (id,dept_no,dept_name) VALUES (1,'1001','3d244141cb5b6f921923f7f88f073941')
- 更新操作:
UPDATE departments SET dept_name='moonlight' WHERE id=1
UPDATE departments SET dept_name='5cdeb84b8fc3c22fd6c3e37ca6d837da' WHERE id=1
- 查询时会自动解密返回给用户
综述
链接
- dbpack: https://github.com/CECTC/dbpack
- dbpack-samples: https://github.com/CECTC/dbpack-samples
- dbpack-doc: https://github.com/CECTC/dbpack-doc
- 事件驱动分布式事务设计:https://mp.weixin.qq.com/s/r43JvRY3LCETMoZjrdNxXA
- 视频介绍:
- 《dbpack 分布式事务功能详解》 https://www.bilibili.com/video/BV1cg411X7Ek
- 《高性能分布式事务框架实践》https://www.bilibili.com/video/BV1Xr4y1L7kD
边栏推荐
猜你喜欢
随机推荐
2022 Strong Net Cup CTF---Strong Net Pioneer ASR wp
LeetCode第 303 场周赛
软测面试如何介绍项目?要做哪些技术准备?
Using Canvas to achieve web page mouse signature effect
M1芯片电脑安装cerebro
06 redis cluster structures
06 redis 集群搭建
指针和解引用
Bugku-Misc-贝斯手
08 Spark cluster construction
MySQL locking case analysis
Good guy, the company server just crashed!
金仓数据库 KingbaseES V8.3 至 V8.6 迁移最佳实践(4. V8.3 到 V8.6 数据库移植实战)
MySQL's maximum recommended number of rows is 2000w, is it reliable?
The anxiety of the post-90s was cured by the vegetable market
ROS2系列知识(7):用rqt_console查看日志logs
[Dark Horse Morning Post] Hu Jun's endorsement of Wukong's financial management is suspected of fraud, which is suspected to involve 39 billion yuan; Fuling mustard responded that mustard ate toenails
缓存一致性MESI与内存屏障
C#中关于DevExpress的常用操作和帮助类项目工程内容说明
首席工程师究竟是怎样的存在?









