Java basic summary
-
Win10 including mounting JDK8, data type variables, operators, array
Java object-oriented features summary
Encapsulation, inheritance, polymorphism
Dynamic reference memory - a set of defined set && precise - Generic
Java collections, also known as container, can be dynamically referenced objects stored in the container. (Flexible and scalable)
What is a generic?
Parameterized type! ! !
What is a parameterized type? ? ?
The specific type (e.g., String, Integer) Parameter abstracted.-
It refers IO Input and Output, the main aim is to achieve the transfer of data between storage media. [Flow: a data stream, the flow stream in analogy]
&& && reflection enumeration class notes
In the example of the need for a class or a plurality of relatively fixed and when using enumeration class.
Annotation is actually a code of special markers , these markers can be compiled, class loading, it is read runtime and executes the corresponding processing.
Reflection Reflection API allows a program to make any type of internal information by means of operation, and internal properties and methods of any object can be directly operated. (Highest authority)
MySQL Notes
-
Including MySQL introduced, under Linux installation MySQL remote connections, MySQL common commands, data types, operators
MySQL table design specifications
Common specifications include the design of the table, such as the prohibition pictures stored in the database, such as large binary data files, such as the three major paradigms
MySQL indexing and development specifications
The single table index is preferably not more than 5, the index is preferably added to the where clause
JVM notes
-
Memory structure including thread public and private thread, the thread which includes public heap, the method area, runtime constant pool, private thread stack, including virtual machine, native method stacks and program counter
GC collection algorithm && GC collector
Including labeling algorithm: reachability analysis algorithm, GC Roots object, four, garbage collection algorithm, suitable for old age mark sweep algorithm and tags to organize algorithm for the young generation of replication algorithm and the "local conditions" generational algorithm
Including seven kinds of collector, single-threaded recovered Serial and Serial Old collector, multi-threaded Parallel Scavenge collector and Parallel Old and popular CMS and G1 collector.
jdk8 default Parallel Scavenge new generation collector and recycler years old Parallel Old
JVM parameters && command tool
JVM tuning object is to ensure that certain a certain case as much as possible to reduce the number of GC
Recommended arranged to stack memory and heap memory initialization maximum set to the same value, increased memory space element
VisualVM visualization tool for monitoring the operation of the JVM
-
Process involves loading class loading, verification, preparation, resolution, initialization
In order to avoid repeated loading class, JVM using parents delegation model, priority will be submitted to the parent class loader class loader loading the class to avoid repeated loading, class unified
SpringBoot notes
-
Micro service monomer is used in business development to a certain size evolution strategy.
Including SpringBoot project build process engineering, RestController complex notes, pom dependency analysis and simple deployment.
SpringBoot - Web development (static resource mapping)
WebMVCAutoConfiguration static mapping rules, custom favicon, banner
[ SpringBoot - Web Development (using Thymeleaf template engine)]
thymeleaf jump rule, CRUD test
SpringBoot integrated Druid connection pool
Connection pooling by omitting (multiplexing) the process of creation and destruction connected connection (three-way handshake and the four-way handshake when destroyed when the TCP connection is established), thereby improving performance.
Arrogant Druid (claimed on the GitHub Wiki is the best Java language database connection pool)
SpringBoot integrated Redis cache
Enhance access efficiency duplicate access to data.
Redis application scenarios (for data is repeatedly accessed)
- Page cache (images, CSS, html and other static data) - hot data
- Current list
- Leaderboard
- counter
- session storage
SpringCloud notes
Service registration component --Eureka build high availability clusters
Micro unified call service
Ribbon implement client load balancing
Implementation of the client load balancing
-
Hystrix is an implementation of fault tolerance components. [Abandoned the vehicle and insurance handsome]
-
The server monitoring the amount of requests
Nginx + Zuul cluster to achieve high availability gateway
- Nginx load balancing by polling
- Zuul achieve high availability through clustering
&& link tracking service monitoring service
When a request is not available or slow down, the need for timely investigation and the failure point of service has become a major storm micro-service maintenance.
Distributed Configuration Center Apollo - QuickStart
Apollo addition to the full-featured, in the domestic popularity is quite extensive
Design Patterns notes
-
Is a design pattern for code design of lessons learned , the main scenario is in building large applications on
Seven principles of design patterns (1.2)
The purpose of design principles is to build a more stable and robust software, around seven principles of loose coupling and scalability to expand.
-
Five relationships of dependency by some examples
Create a schema ---- singleton (2.1)
Singleton defined: in the software system, an object instance of a class has only one. [DoubleCheck, static inner classes, enumeration]
---- factory pattern to create a schema (2.2)
Plant is used to produce, whereas in Java, is used to produce object instance
Create a schema ---- prototype model (2.3)
In simple terms, by copying create objects the way. (Copied object can be understood as a template)
Deep Copy: copy the type of problem solving reference.
Create a schema ---- builder mode (2.4)
In simple terms, the builder pattern to create objects + = attribute assignment.
Builder mode for creating class contains a number of parameters and require customized case.
-
As the name suggests, creates the focal point in a Model of how to create objects can be separated to maximize the creation and use of objects and thus reduce the coupling system.
Structural model ---- Decorator (3.1)
Mode decorative purposes - the core portion and the decorative portion may be freely combined. '
Architecture design reading notes
"Architecture school from scratch," notes - Part 1: concepts and basic
Suitable better than the industry-leading.
Simple is better than complex.
Evolution than in one step.
-
Storage, computing, high-performance and high-availability common strategies
Notes "from scratch learning architecture" - Part III: scalable architecture model
The evolution of a layered architecture, SOA, micro Services Architecture
"Architecture school from scratch," notes - Part IV: Architecture combat
Weigh the essence of technology in business and the cost of seeking a balance between.