当前位置:网站首页>Talk about the essence of interface idempotent and consumption idempotent
Talk about the essence of interface idempotent and consumption idempotent
2022-04-23 07:59:00 【Dream river dream】
Interface idempotency and how to prevent message duplication and how to solve it ?
idempotent : Executing multiple times has the same impact on business data as executing once
The essence : There are no errors in the data
Solving problems from the essence , Add distributed locks before executing code , And then determine ( Determine whether data can be inserted , Whether it can be updated , Can I delete ). Since the plus distribution lock involves the of the lock key What is it? ? Recommended service key, Not the only request ID Or the only message ID. Because there may be two different requests / All messages want to manipulate the same data , The data is not safe .
版权声明
本文为[Dream river dream]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230629085984.html
边栏推荐
- SQL sorts string numbers
- Towords Open World Object Detection
- Houdini>流体,刚体导出学习过程笔记
- 第四章 无形资产
- 大学学习路线规划建议贴
- SAP STO With Billing流程与配置
- Internal network security attack and defense: a practical guide to penetration testing (IV): Authority improvement analysis and defense
- Protobuf 使用
- SAP self created table log function is enabled
- Internal network security attack and defense: a practical guide to penetration testing (VII): cross domain attack analysis and defense
猜你喜欢

Intranet penetration series: icmptunnel of Intranet tunnel (by master dhavalkapil)

MySQL in window10 version does not work after setting remote access permission

C#控制相机,旋转,拖拽观察脚本(类似Scenes观察方式)

Chapter V investment real estate

攻防世界MISC刷题1-50

Export all SVG files in the specified path into pictures in PNG format (thumbnail or original size)

nacos源码分析思路

Robust and Efficient Quadrotor Trajectory Generation for Fast Autonomous Flight

VBA appelle SAP RFC pour réaliser la lecture et l'écriture des données

C # control the camera, rotate and drag the observation script (similar to scenes observation mode)
随机推荐
03use of scanner class (console input)
Redis--为什么字符串emstr的字符串长度是44字节上限?
Export all SVG files in the specified path into pictures in PNG format (thumbnail or original size)
Reading notes
《内网安全攻防:渗透测试实战指南》读书笔记(五):域内横向移动分析及防御
Zhuang understand's TA notes (VI) < fakeenvreflect & rust, rust effect >
面试学习路线
How does Apache Hudi accelerate traditional batch mode?
BUUCTF MISC刷題
关于unity获取真实地理地图转3D化的相关链接
Unityshader Foundation
C read INI file and write data to INI file
如何展示您的数字作品集:来自创意招聘人员的建议
爬虫学习笔记,学习爬虫,看本篇就够了
The displayed amount of ABAP ALV is inconsistent with the exported amount
When using flash, the code ends automatically without an error, the connection cannot be maintained, and the URL cannot be accessed.
STO With Billing 跨公司库存转储退货
Chapter IV intangible assets
Link to some good tutorials or notes about network security and record them
About unity to obtain links related to the transformation of real geographic maps into 3D