Node Binding Global TraceID

Problem Description Due to the limitations of the single-threaded model of Node.js, we cannot set a global traceid to aggregate requests, that is, to bind output logs to requests.Without the binding of logs and requests, it is difficult to determine how the log output corresponds to the user's requests, which makes online troubleshooting diffic ...

Posted on Wed, 13 Nov 2019 20:16:59 -0500 by Zilvermeeuw

vue connection database

vue connection database axios in vue 1. Install axios npm: npm install axios -S cdn: <script src="https://unpkg.com/axios/dist/axios.min.js"></script> 2. Configure axios Create a new api/index.js file in the project to configure axios api/index.js import axios from 'axios'; let http = axios.create({ base ...

Posted on Wed, 13 Nov 2019 14:14:27 -0500 by aneesme

JDBC connects MySQL database and realizes simple functions

1. Create a table in the database Briefly talk about MySQL: a database software, in essence, is a database management system (not accurate expression), whose function is to create n databases and N tables in each database use test;//Using the test database create table user_info(//Create a table named user? Info in the test da ...

Posted on Wed, 13 Nov 2019 11:25:57 -0500 by Cleanselol

oracle learning notes: ResultSetMetaData and ResultSet are transformed into corresponding entity class framework

introduce Objects that can be used to obtain information about the types and properties of columns in ResultSet objects are widely used in the framework of persistent frame layer (such as mybatis, hibernate). common method int getColumnCount() Returns the number of columns in this ResultSet object String getColumnLabel(int column) Gets the rec ...

Posted on Wed, 13 Nov 2019 10:31:55 -0500 by as22607

Memory crash? In fact, you just need to change the way

Using the Set set Set provided by JDK for URL de duplication seems to work well, but there is a fatal flaw in this approach. As the number of URLs collected increases, you need more and more memory, which will eventually cause your memory to crash. Do we have a solution without using the database? Bloon filter! It can solve this problem perfec ...

Posted on Wed, 13 Nov 2019 06:13:29 -0500 by ScOrPi

MySQL traditional point-to-point replication online to GTID mode replication

Advantages and disadvantages of GTID Before MySQL 5.7, traditional point-to-point replication was the main mode of master-slave replication. With the introduction of GTID in MySQL 5.6 and the optimization of MySQL 5.7, the master-slave replication mode of GTID has become a new choice after MySQL 5.7 (especially MySQL 5.7.6). To use GTID mode, f ...

Posted on Wed, 13 Nov 2019 04:42:17 -0500 by IceD

Run and deploy with Go

brief introduction Build in docker Integrated in docker compose Using nginx reverse proxy Modify API Create nginx service Update database start-up summary Code of current part brief introduction At the end of the day, the tests and documentation are complete, leaving deployment alone In normal tests, you can run it directly with go run, b ...

Posted on Wed, 13 Nov 2019 00:05:39 -0500 by dilip_bkumar

LNMP Architecture Details

LNMP Architecture Details (Please trust me privately if you need a source package for this experiment) Nginx Installation Mount Source Package [root@localhost ~]# smbclient -L //192.168.100.23/ #Access Host Enter SAMBA\root's password: OS=[Windows 10 Enterprise 17763] Server=[Windows 10 Enterprise 6.3] Sharename Type Comment ...

Posted on Tue, 12 Nov 2019 20:18:04 -0500 by JaclynM

Java Description Design Mode (18): Enjoyment Mode

Source code for this article: GitHub. Click here || GitEE. Click here 1. Scenarios for use Apply Code public class C01_InScene { public static void main(String[] args) { String c0 = "cicada" ; String c1 = "cicada" ; System.out.println(c0 == c1); // true } } The String type uses the hedonic mode.String objects ar ...

Posted on Tue, 12 Nov 2019 20:17:50 -0500 by colandy

Spring Boot 2.x + myBatis full xml implementation CRUD and automatic table building

Blogger wrote an introduction before Spring Boot 2.x + myBatis full annotation implementation CRUD and automatic table creation This time, we will write a demo based on xml configuration. The main supported functions are the same as before:(1) the database automatically creates tables, such as the user table in this example.(2) database CRUD(cr ...

Posted on Tue, 12 Nov 2019 16:36:19 -0500 by emilyfrazier