当前位置:网站首页>How to implement common frameworks
How to implement common frameworks
2022-07-06 20:57:00 【EnndmeRedis】
MyBatis
mybatis It's a persistence layer framework , It's solved JDBC To operate the database, you need to write complex connections 、 Data manual mapping . Use xml Configuration omits establishment sqlSession The process of , Use object relational mapping to solve the troublesome manual mapping .
What you need to do is to execute the corresponding... When calling an interface SQL, I'm gonna use it here A dynamic proxy
Generate proxy objects , The proxy object can be based on the incoming SQL, Complete connection establishment and use JDBC The method of execution SQL; Get the type of the return value of this method through reflection , Map the data set returned by the database in turn
Spring IOC Containers
- Define something Bean Annotations , We want to scan these annotations and add them to Bean Containers
- Read the scan path in the configuration and scan , Then put the .class Files are stored in one Set in
- Let's go through this set , According to the annotation on the class, give it to IOC Containers , It's a Map aggregate
- If there is Bean Depend on others Bean Complete dependency injection
- Generate circular dependencies , Create two more Map Make L2 cache and L3 cache
MQ
- Specify the message protocol (JMS、AMQP)
- Select the storage method ( Memory 、 journal 、 database ) Balance efficiency and reliability
Naocs
Reference resources Nacos Realization principle
Distributed lock
Reference resources Redis Do distributed locking process setnx -> red lock
Distributed transactions
Reference resources XA、AT、TCC
Distributed transactions Seata
Local message table ??? I don't understand
MQ: I guarantee the reliability of the information ( Release confirmation + Persistence + Manual response ), Retry to prevent inconsistencies caused by downtime . however ! If it is my downstream service business problem , For example, the user's balance is insufficient , Then I How the downstream service notifies the upstream service to rollback ????( use Seata???)
边栏推荐
- 【每周一坑】正整数分解质因数 +【解答】计算100以内质数之和
- [200 opencv routines] 220 Mosaic the image
- Tips for web development: skillfully use ThreadLocal to avoid layer by layer value transmission
- Simple continuous viewing PTA
- OLED屏幕的使用
- Pat 1078 hashing (25 points) ⼆ times ⽅ exploration method
- OAI 5G NR+USRP B210安装搭建
- What key progress has been made in deep learning in 2021?
- Infrared thermometer based on STM32 single chip microcomputer (with face detection)
- 自定义限流注解
猜你喜欢
1_ Introduction to go language
Reinforcement learning - learning notes 5 | alphago
数据湖(八):Iceberg数据存储格式
2022 refrigeration and air conditioning equipment installation and repair examination contents and new version of refrigeration and air conditioning equipment installation and repair examination quest
全网最全的知识库管理工具综合评测和推荐:FlowUs、Baklib、简道云、ONES Wiki 、PingCode、Seed、MeBox、亿方云、智米云、搜阅云、天翎
15 millions d'employés sont faciles à gérer et la base de données native du cloud gaussdb rend le Bureau des RH plus efficace
使用.Net驱动Jetson Nano的OLED显示屏
Laravel笔记-自定义登录中新增登录5次失败锁账户功能(提高系统安全性)
审稿人dis整个研究方向已经不仅仅是在审我的稿子了怎么办?
2022 nurse (primary) examination questions and new nurse (primary) examination questions
随机推荐
【mysql】游标的基本使用
[asp.net core] set the format of Web API response data -- formatfilter feature
【mysql】触发器
Application layer of tcp/ip protocol cluster
硬件开发笔记(十): 硬件开发基本流程,制作一个USB转RS232的模块(九):创建CH340G/MAX232封装库sop-16并关联原理图元器件
Quel genre de programmation les enfants apprennent - ils?
基于STM32单片机设计的红外测温仪(带人脸检测)
OLED屏幕的使用
PHP online examination system version 4.0 source code computer + mobile terminal
[200 opencv routines] 220 Mosaic the image
数据湖(八):Iceberg数据存储格式
User defined current limiting annotation
Spiral square PTA
基于深度学习的参考帧生成
Review questions of anatomy and physiology · VIII blood system
What are RDB and AOF
【每周一坑】正整数分解质因数 +【解答】计算100以内质数之和
2022 portal crane driver registration examination and portal crane driver examination materials
C language games - minesweeping
Implementation of packaging video into MP4 format and storing it in TF Card