当前位置:网站首页>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
边栏推荐
猜你喜欢

沈腾拯救暑期档

08 spark 集群搭建

2022强网杯CTF---强网先锋 ASR wp

今晚直播!

The site is not found after the website is filed. You have not bound this domain name or IP to the corresponding site! The configuration file does not take effect!

Live tonight!

软测面试如何介绍项目?要做哪些技术准备?

泰国 好产品推荐!2022年最好的胶原蛋白评测有哪些? 喝出健康和美丽适合需要改善肌肤

第一次改开源中间件keycloak总个结

吴恩达机器学习课后习题——kmeans
随机推荐
04 flink cluster construction
自定义注解实现日志打印时屏蔽特定字段不打印
intentservice使用(Intention)
PAT 甲级 A1003 Emergency
ROS2系列知识(6):Action服务概念
网上开户佣金万一靠谱吗,网上开户安全吗
hcip第九天
Description of common operations and help projects about DevExpress in C#
C# LibUsbDotNet 在USB-CDC设备的上位机应用
The site is not found after the website is filed. You have not bound this domain name or IP to the corresponding site! The configuration file does not take effect!
MySQL's maximum recommended number of rows is 2000w, is it reliable?
JumpServer堡垒机部署
Complete knapsack problem to find the number of combinations and permutations
GridControl helper class for DevExpress
表达式;运算符,算子;取余计算;运算符优先顺序
LeetCode第 303 场周赛
[ACNOI2022]物品
银行案例|Zabbix跨版本升级指南,4.2-6.0不香吗?
M1芯片电脑安装cerebro
助推科技强国高质量发展《科创超级训练营》系列活动正式拉开帷幕