TCP Connection
The foundation of TCP is Socket. In the TCP connection, we will use ServerSocket and Socket. After the client and server establish a connection, the rest is basically the control of I/O.
Let's first look at a simple TCP communication,
Purely personal opinion. If you have any mistakes, please correct them!I. Switch
1. it can accept four data types: Char, byte, short, int2. Default can be placed anywhere in the switch, but it will be executed only when the given condition does not
Java Network Programming
1. Socket programming
Socket: a class that encapsulates information such as the port number, IP address, and computer name. Through Socket, we can communicate with a remote computer.
Network Communication Model
C/S
1. BIOBefore JDK5, the JDK io mode was only bio (synchronous blocking)Problem: Because of the presence of blocking, you need to open a thread for each request. Excessive thread switching affects operating system performanceWORKAROUND: Use the thread
Apache Commons-pool is essentially an "object pool" that maintains a container of object collections through certain rules; Commos-pool in many scenarios, to implement "connection pooling"/"task worker pool" and so on, everyone commonly used DBCP
An exception occurs when a newly developed website is opened every morning to access the database. The database is MySQL. That is to say, an exception occurs during a long idle period of time. The Exception Code is ** begin nested exception **
Com.
Ⅰ, Xtrabackup Introduction
Xtrabackup can only back up the data of InnoDB engine, can not back up the table structure, Percona Open source, strongly recommend the latest version (old version bug many)
Innobackupex can back up data and
This profile is for Dell R710, dual Xeon E5620, and 16G memory hardware configurations. CentOS 5.6 64-bit system, MySQL 5.5.x stable version. For sites with daily IP 50-100W,PV 100-300w, use the InnoDB storage engine primarily. Other application
# The following options will be read by the MySQL client app.Note Only the client application included with MySQL guarantees that this content can be read.# If you want your own MySQL application get these values.# These options need to be specified
Simple communication process https://www.cnblogs.com/SteveLee/p/9860507.html
In the previous article, we have fully introduced the grpc-based service discovery and service governance solution. let's first review the RPC call process (I will
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.