Talk about puma's Parser
order
This paper mainly studies the Parser of puma
Parser
puma/puma/src/main/java/com/dianping/puma/parser/Parser.java
public interface Parser extends LifeCycle {
BinlogEvent parse(ByteBuffer buf, PumaContext context) throws IOException;
}
The Parser inherits the life cycle interface, which defines the parse method and resolves ByteBuffer ...
Posted by monkeypaw201 on Wed, 03 Jun 2020 07:39:03 -0700
How to insert tens of millions of data quickly and safely?
Author: ksfzhaohui
https://my.oschina.net/OutOfMemory/blog/3117737
Recently, there is a demand to analyze an order file, and the description file can reach tens of millions of data, each data is about 20 fields, each field is separated by commas, and it needs to be stored in half an hour as much as possible.
thinking
1. Estimate file size
Bec ...
Posted by brendan2b on Tue, 02 Jun 2020 19:13:02 -0700
What exactly did spring boot do?
Preface
For server-side development, most new projects are based on spring boot.
Projects using spring boot typically have this line of code
SpringApplication.run(TestApplication.class, args);
This is where the Spring boot framework loads.It's a whim to see what it's doing.
new SpringApplication(primarySources))
The run method first creates a ...
Posted by evmace on Tue, 02 Jun 2020 01:51:44 -0700
MySql Easy Start Series --- The first stop is to easily understand MySQL overall framework from the source point of view
One: Background
1. Storytelling
Recently, looking at the major technical communities, whether they know, the Nuggets, the Blog Garden or csdn, we can hardly see any articles about sqlserver class shared by small partners. It looks like sqlserver has disappeared in recent years and no one has written it since. It is impossible to write sqlserver ...
Posted by Modernvox on Mon, 01 Jun 2020 17:54:38 -0700
Basic example of typescript
ts, as a js with added type, is similar to java at first, but later I found that there are many differences
fib with type example
function fib(n: number): number {
return n < 2 ? n : fib(n - 1) + fib(n - 2)
}
// 0,1,1,2,3,5,8,13,21,34
console.log([...Array(10)].map((_, k) => fib(k)).join(','))
When assigning literal v ...
Posted by abgoosht on Mon, 01 Jun 2020 08:47:43 -0700
The applet uploads multiple pictures to the spring boot background and returns the accessible picture links
Recently, many pictures of small programs are uploaded to the Java background, which is written with springboot. Also is stepped on many pits, today will take you to step by step to achieve the upload of small program side many pictures.
First, look at the effect realization diagram
Callback for successful upload of appletPrint after receiving ...
Posted by Timma on Sun, 31 May 2020 08:05:14 -0700
Java Dynamic agent and static agent and what it can do for us
I believe that we have more or less come into contact with Java's agent mode on the Internet and in our daily study and work. We often hear some terms about static agent and dynamic agent. But do we really know that? At least when I interviewed, I found that many people were not very clear.
First of all, agents are easy to understand, that is, ...
Posted by -Karl- on Sun, 31 May 2020 03:05:13 -0700
Talkshow programming builder mode
Builder Pattern
The construction process of complex objects is separated, so that different implementation methods of this abstract process can construct different objects (properties).
motivation
The builder pattern can separate a part from its assembly process and create a complex object step by step. Users only need to specify the type of ...
Posted by duncanwil on Sun, 31 May 2020 00:47:12 -0700
Talk programming - responsibility chain mode
Chain of Responsibility Pattern
It gives multiple objects the opportunity to process the request, thus avoiding the coupling between the sender and the receiver of the request. Connect these objects into a chain, and pass the request along the chain until there is an object to handle it.
motivation
Each processing object determines which com ...
Posted by leo.bonnafe on Sun, 31 May 2020 00:40:36 -0700
An article learning html [classic case]
html is called hypertext markup language. Note that it's just a markup language, not a programming language.
Preparation specification:
Composed of tags (html, div, p, h1, etc.)
Tags appear in pairs (< HTML >... < / HTML >), with some exceptions, such as < img SRC = "" / >, < br / >
Marked with hierarchy
...
Posted by devarticles on Sat, 30 May 2020 15:20:14 -0700