Integrating sharding JDBC to realize data desensitization in JPA project

introduction In the previous blog post, the database desensitization scenario and scheme have been completely introduced. The sharding JDBC open source project from Jingdong Digital Technology Co., Ltd. has realized this function transparently through the way of data source intermediate agent. However, although the function has been realized, ...

Posted by rocksolidsr on Mon, 18 May 2020 20:31:28 -0700

I recommend it StringUtils.isBlank

In our daily development, void judgment should be the most commonly used operation. Therefore, commons lang3 package is always necessary in the project. This package provides us with two methods for void determination, namely StringUtils.isEmpty(CharSequence cs) and StringUtils.isBlank(CharSequence cs). Let's see the difference between the two ...

Posted by febrarian on Mon, 18 May 2020 08:05:55 -0700

Teach you how to implement a Java based distributed lock service

In modern programming languages, programmers who have been exposed to multithreaded programming have a certain understanding of locks. In short, the lock in multithreading is a mechanism to ensure the consistency of shared resources when multiple threads modify shared resources in multithreading environment. We will not expand here. In the dis ...

Posted by cuboidgraphix on Mon, 18 May 2020 03:25:12 -0700

Detailed explanation of ASP.NET Core Middleware

What is Middleware? Middleware is software that is assembled into application pipelines to process requests and responses. Each component: Choose whether to pass the request to the next component in the pipeline. You can perform work before and after calling the next component in the pipeline. Request delegates are used to build the requ ...

Posted by Headwaters on Mon, 18 May 2020 02:40:41 -0700

java Concurrent programming-CountDownLatch and Cyclic Barrier differences in internal implementation and scenarios

Preface CountDownLatch and Cyclic Barrier are two important tool classes for concurrent java programming. They are widely used in many multithreaded concurrent or parallel scenarios.However, each has its own emphasis on the internal implementation and use scenarios. Internal implementation differences The former relies more on classical AQS m ...

Posted by phpconnect on Sun, 17 May 2020 12:13:23 -0700

Kong source code installation

Kong is a cloud-native, fast, scalable, and distributed Microservice API Gateway background Although Kong has reached 2.0, because the previous expansion development was based on Kong 1.2.1, the source code and development environment construction of Kong are based on Version 1.2.1. The subsequent versions can follow this process, but t ...

Posted by rxsid on Sun, 17 May 2020 08:26:34 -0700

Kong source code installation

Kong is a cloud-native, fast, scalable, and distributed Microservice API Gateway background Although Kong has reached 2.0, because the previous expansion development was based on Kong 1.2.1, the source code and development environment construction of Kong are based on Version 1.2.1. The subsequent versions can follow this process, but t ...

Posted by Cugel on Sun, 17 May 2020 08:18:14 -0700

netty summarizes the startup process of the server

Mainly paste code Make a summary for yourself (connection server initialization and processing): 1. NioEventLoop is used to positively handle io connection 2.NioEventLoopGroup can be simply understood as two processing groups, one is accepting connection, the other is processing connection, and the chooser in it is NioEventLoop array Server ...

Posted by KeitaroHimura on Sun, 17 May 2020 07:44:32 -0700

java Concurrent Programming: using object waiting and notification mechanism to implement a connection pool with waiting timeout

As we all know, Java Object objects provide interfaces such as wait() and notify()/notifyAll(), which are important parts of concurrent programming. They play a very important role in the cooperation between multi threads, and there are many scenarios that can be used in the actual development. Needless to say, today we will use this mechanism ...

Posted by ZaphodQB on Sun, 17 May 2020 07:29:21 -0700

Java foundation -- overload, static dispatch and dynamic dispatch

——Notes on deep understanding of Java virtual machine JVM advanced features and best practices Let's start with a piece of code public class Human {} public class Man extends Human{} public class Woman extends Human{} public class FulynDemo { public void sayHello(Human arg) { System.out.println("i am human"); } p ...

Posted by zild1221 on Fri, 15 May 2020 08:38:05 -0700