Current limiting and fusing of spring cloud services

1, Current limiting 1. Meaning The purpose of current limiting is to protect the system by limiting the speed of concurrent access / requests or requests within a time window. Once the limit rate is reached, it can be denied service, that is, directed to the error page or friendly display page, queued or waiting. Flow restriction can ens ...

Added by grim1208 on Mon, 21 Feb 2022 12:24:35 +0200

The latest source code in 2022 explains the underlying relationship between Window, View and Activity

I've always wanted to write an article that deeply analyzes the relationship between window, View and Activity from the perspective of source code to help those junior and intermediate Android developers deepen their understanding of the three, but I haven't been able to calm down and write some good articles in recent years. At present, the pl ...

Added by Foregone96 on Mon, 21 Feb 2022 12:15:16 +0200

Multithreaded concurrency tool -- J.U.C concurrent contracting -- AQS and ReentrantLock principle

Most of the tools in the JUC package are based on AQS, so let's learn the principle of AQS first 1.AQS principle 1.1 overview: The full name is AbstractQueuedSynchronizer, which is the framework of blocking lock and related synchronizer tools 1.2 features: The state attribute is used to represent the state of resources (exclusive mode and ...

Added by mikerh9 on Mon, 21 Feb 2022 11:26:05 +0200

Spring cloud configuration center

Foreword: if you want to put the project into the server and run, you can use the configuration center SpringCloud Config here; 1, SpringCloud Config Microservices It means that the business in a single application should be divided into one sub service. The granularity of each service is relatively small, so there will be a large number of s ...

Added by croix on Mon, 21 Feb 2022 11:18:03 +0200

Easy to understand JDBC tutorial - absolutely suitable for zero Foundation

The database realizes data persistence, but we finally have to process data in the program. How can we access the database and read and write data in java code?This requires a set of database standards set by sun company, which is JDBC (Java Database Connectivity). But it is only a specification, not a specific implementation. Therefore, the da ...

Added by mark s on Mon, 21 Feb 2022 11:04:55 +0200

springboot+mybatis+mysql transaction rollback

1. Introduction reference resources: mysql essentially uses database rollback, and the table engine needs InnoDB The versions used are as follows <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.or ...

Added by cdickson on Mon, 21 Feb 2022 11:01:31 +0200

java backend to achieve addition, subtraction, multiplication, division and proportion calculation

java backend to achieve addition, subtraction, multiplication, division and proportion calculation In Java The math package provides the API class BigDecimal, which is used to accurately calculate the number of more than 16 significant bits. BigDecimal creates objects, so you cannot directly perform mathematical operations on its objects using ...

Added by hashim on Mon, 21 Feb 2022 10:58:19 +0200

SpringBoot+ShardingSphere completely solves the problem of encryption and decryption of database fields in production environment

preface    companies in the Internet industry must encrypt the sensitive fields of the database. There are many schemes. The most direct one is to write an encryption and decryption tool class and then process it manually in each business logic. This method is obviously unrealistic in slightly large-scale projects, which is not ...

Added by cfemocha on Mon, 21 Feb 2022 10:29:44 +0200

Detailed explanation of the principle of fluent navigator 2.0

As a new generation of routing, navigator 2.0 provides a declarative API, which is more in line with the style of fluent. Navigator 2.0 is forward compatible, and some new APIs have been added, which is quite different from Navigator 1.0. This article will analyze the underlying logic of Navigator 2.0 in detail, so that we can have an in-depth ...

Added by coinmagnate@com on Mon, 21 Feb 2022 09:52:27 +0200

Principle analysis of fluent async and await

I async await and Future There are three keywords in asynchronous call, async, await and Future. Async and await need to be used together. In Dart, asynchronous operations can be performed through async and await. Async means to start an asynchronous operation or return a Future result. If there is no return value, a Future with null return va ...

Added by Fawkman on Mon, 21 Feb 2022 09:17:00 +0200