当前位置:网站首页>Integration of sentinel series Nacos to realize rule synchronization and persistence
Integration of sentinel series Nacos to realize rule synchronization and persistence
2022-06-13 05:40:00 【codain】
What does the title mean , The reason is that the last chapter : Use and maintenance in Nacos A current limiting in Json To do it Sentinel Persistence of flow restriction rules , Some students here will ask : Isn't it already realized ? Why do you have to say it again , In fact! ,Nacos In the last chapter, we made persistence , So he's talking to Sentinel When doing Integration , Think about it ,Nacos What role do you play ? We usually develop , When it comes to data persistence , Who will you think of at the first time ? No accident should be MySQL, therefore , In the above relationship ,Nacos Also acts as a “ database ” Role , But there is a risk , I'll write it alone :
All current limiting rules are persisted to Nacos, That's fine , But the problem is , We are Nacos The current limit rules are directly modified on the console and synchronized , But there are too many project developers , There will be a problem : Personnel information is not synchronized , What does that mean , Namely , Some developers may not know that the current limit rules are Nacos On maintenance , Default will go Dashboard Directly operate on the , such , It will lead to problems that are difficult to manage , and Nacos The location of is the registry and configuration center , If you do it directly Nacos To do it Sentinel Persistence of the rules of is more or less inappropriate !
How to solve the above problems ? The solution is simple , That's it : modify Sentinel Source code , stay Dashboard Maintain flow restriction rules on the and call directly at the same time Nacos service , Synchronize to Nacos Just above , No need to maintain two sets ( First maintain Nacos, Maintain it again Sentinel Dashboard)
Synchronous implementation
1、 Know the source code first
Sentinel When the console makes flow control rules , Will be called SentinelD
边栏推荐
- Unity game optimization (version 2) learning record 7
- 使用cmake交叉编译helloworld
- MySQL fuzzy query and sorting by matching degree
- Agile conflicts and benefits
- Customer information management system - C language
- 20 flowable container (event sub process, things, sub process, pool and pool)
- Some methods of string
- 13 cancelendevent of a flowable end event and compensationthrowing of a compensation event
- 10 signalstartevent and signalcatchingevent of flowable signal events
- Solution to prompt "permission is required to perform this operation" (file cannot be deleted) when win10 deletes a file
猜你喜欢
随机推荐
powershell优化之一:提示符美化
Standard input dialog for pyqt5 qinputdialog
Case -- the HashSet set stores the student object and traverses
Initial redis experience
Float type value range
Mongodb Multi - field Aggregation group by
KVM virtualization management tool
MySQL installation in Linux Environment
行情绘图课程大纲1-基础知识
Difference between deviation and variance in deep learning
Explanation of service registration and discovery API of Nacos series
Use of natural sorting comparable
17.6 unique_ Lock details
Understanding of speech signal framing
Database design
Metaltc4.0 stable release
Hainan University Postgraduate Entrance Examination electronic information (085400) landing experience
Fast power code
若依框架=》如何设置导入导出模板全局为文本格式(解决科学计数问题)
OpenGL Mosaic (8)