How does Java implement its own SPI mechanism?JDK Source

Note: The source analysis corresponds to JDK version 1.8 1 Introduction This is the first article on JDK Source Interpretation in Source Notes. In this article, we will explore the source code related to Java's SPI mechanism. 2 What is SPI mechanism So, what is the SPI mechanism? SPI is short for Service Provider Interface, which means Service ...

Added by cyball on Sun, 29 Mar 2020 05:05:48 +0300

Talk about GRPCStreamServiceStatus of skywalking

order This paper mainly studies grpcstream service status of skywalking GRPCStreamServiceStatus skywalking-6.6.0/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/remote/GRPCStreamServiceStatus.java public class GRPCStreamServiceStatus { private static final ILog logger = LogManager.getLogger(GRPCStreamServiceSta ...

Added by s_dhumal on Sat, 28 Mar 2020 16:38:26 +0200

ActiveMQ Installation and Use

Introduction to ActiveMQ: https://my.oschina.net/u/4284277/blog/3212385 SpringBoot Integrates ActiveMQ: https://my.oschina.net/u/4284277/blog/3212387 MQ theoretical knowledge: https://my.oschina.net/u/4284277/blog/3212391 1. Installation Official website: http://activemq.apache.org/ Baidu Disk Address: Link: https://pan.baidu.com/s/1A55X- ...

Added by jmcc on Fri, 27 Mar 2020 07:57:54 +0200

Data structure python recursion

recursion Function directly or indirectly calls the function itself, which is called a recursive functionThree elements of recursion:1) The recursive algorithm must have a basic ending condition (to solve the problem of minimum scale directly);2) The recursive algorithm must be able to change the state to the basic end condition (reducing the ...

Added by assafbe on Wed, 25 Mar 2020 18:25:14 +0200

Serialization Protocol In Action

This article introduces simple practices for several common serialization protocols ProtoBuf ProtoBuf is open source with Google and can be compiled across languages.It can be called an IDL, Interface description language. Download the compiler, protoc protoc-3.11.4-osx-x86_64.zip; download versions of different operating systems. https://gi ...

Added by neal.pressley on Wed, 25 Mar 2020 05:03:03 +0200

node.js 17 file operation

This article refers to the original- http://bjbsair.com/2020-03-22/tech-info/2819/ After talking about the module concept, let's take a look at the file operations in node.js in this article. The API of file operation is in fs module, fs is called "File System". Most programming languages provide file manipulation, and node.js is no ...

Added by Zallus on Tue, 24 Mar 2020 17:58:08 +0200

Reading process of nginx request header data

In the previous article, we explained how nginx reads the request line data and parses the request line. In this paper, we mainly explain how nginx reads the data of the request header sent by the client and analyzes the data. In essence, the data reading process of request line and request header is basically the same, because they are faced w ...

Added by moallam on Tue, 24 Mar 2020 05:06:03 +0200

SpringBoot+Redis solves the problem of thousands of submissions in an instant

In a real development project, an exposed interface is often faced with a large number of repeated requests submitted in an instant. If you want to filter out the repeated requests and cause damage to the business, you need to implement idempotent! Let's explain the concept of idempotent: Any number of executions has the same impact as a ...

Added by azylka on Tue, 24 Mar 2020 03:56:42 +0200

Understand 127 common JS program snippets in 30 minutes

This article refers to the original text- http://bjbsair.com/2020-03-22/tech-info/2077/ JavaScript is currently one of the most popular programming languages, as most people say: "If you want to learn a programming language, learn JavaScript." Quincy Larson, the founder of FreeCodeCamp, was asked in a recent interview which language ...

Added by freeheader on Mon, 23 Mar 2020 18:45:36 +0200

ASP.NET Core notes - dependency injection

Service life cycle The choice of life span in chain injection TryAdd and generic injection Replace built-in service container ASP.NET Core provides a default dependency injection container, which can be configured in the Startup.ConfigureServices method. Service life cycle The default dependency injection container provides three lifecycles: ...

Added by sneskid on Sun, 22 Mar 2020 17:42:35 +0200