Spring cloud gateway dynamic routing
Summary
Online project publishing generally has the following schemes:
Downtime release
Blue green deployment
Rolling deployment
Grayscale release
This kind of release is usually released at night or during major version upgrade. Because it needs to be stopped, now everyone is studying Devops scheme.
Blue green deployment requires t ...
Posted by Maq on Sat, 04 Apr 2020 23:15:39 -0700
Analysis of Redis source code -- implementation of adlist
adlist
Adlist is one of the basic data structures of Redis. It is a two-way linked list and records the length of the linked list. The iterator of adlist records the iteration node and direction. I think the implementation of list is better than STL
Several important structures
The implementation of adlist is relatively simp ...
Posted by regexpert on Sat, 04 Apr 2020 09:06:09 -0700
WeChat Third Party Platform Web-wide Publishing Detection
First thanks easyWechat Author, provides a very useful SDK!
Next thanks Feishan Snow Leopard Although I took a lot of detours after reading this post (I was too foolish), without this post, I just looked at the WeChat documents and had no idea at all.
Finally, greet the author of the WeChat document!!!
WeChat posted the detected documen ...
Posted by renesis on Fri, 03 Apr 2020 18:22:05 -0700
User information caching policy
Because the front-end needs user information userInfo, and the back-end modules, such as reports, also need user information, the frequency of query is very high, involving more linked tables.
However, the actual system users are small and the data is basically unchanged. For the convenience of each module, it is decided to adopt caching.
Choos ...
Posted by Grim... on Fri, 03 Apr 2020 13:30:28 -0700
Spring MVC uses stub layer
Premise of use:
stub dummy data is used when the interface does not exist (i.e. message 404)
Entrance:
In BusinessExceptionHandlerAdvice
NoHandlerFoundException
Exception capture method
Flow chart
Where is the configuration file read?
In oa/web/controller/handler/EnvironmentInit.java,
EnvironmentInit implements ApplicationListener ...
Posted by david4u on Fri, 03 Apr 2020 05:10:15 -0700
RabbitMQ consumer current limiting, TTL, dead letter queue
Thank you for your reference- http://bjbsair.com/2020-04-01/tech-info/18382.html
Current restriction at the consumer end#
1. Why limit the flow to the consumer#
Suppose a scenario, first of all, our Rabbitmq server has a backlog of tens of thousands of unprocessed messages. If we open a consumer client, we will see this situation: a huge amount ...
Posted by watsonowen on Fri, 03 Apr 2020 03:29:45 -0700
Use Filebeat 6 to collect logs from multiple directories and send them to lostash
1. Install filebeat to the target machine
Official installation documents
This test uses windows environment to install filebeat
win:
1. Download the Filebeat Windows zip file from the downloads page.
2. Extract the contents of the zip file into C:\Program Files.
3. Rename the filebeat--windows directory to Fil ...
Posted by jamesloi on Thu, 02 Apr 2020 15:20:19 -0700
Using graphic verification code Kaptcha in Java Web project
1, Verification code introduction
The main way of generation:
1. Use Java Native mode, including the use of Servlet, AWT and ImageIO;
2. Use open source libraries, such as Jcaptcha, Kaptcha;
(open source library of each graphic verification code: http://www.oschina.net/project/tag/248/captcha?lang=19)
In addition, the generated code can be ...
Posted by gin on Thu, 02 Apr 2020 10:26:13 -0700
redis-4.0.2 cluster building
Cluster building environment, one Centos7 virtual machine (192.168.217.128), six redis nodes redis-4.0.2
Install redis: follow the steps on the official website, and we won't talk about it here. Enclosed address https://redis.io/download,
Note that there may be errors (redis tarError) during the installation process. ...
Posted by ndorfnz on Thu, 02 Apr 2020 06:30:40 -0700
Spring boot auto assembly principle
SpringBootApplication annotation
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
@SpringBootConfiguration
@EnableAutoConfiguration
@ComponentScan(excludeFilters = { @Filter(type = FilterType.CUSTOM, classes = TypeExcludeFilter.class),
@Filter(type = FilterType.CUSTOM, classes = AutoConfigu ...
Posted by theprofession on Thu, 02 Apr 2020 01:45:43 -0700