New in Kubernetes: programming in yaml

Author | Wu Peng Introduction Performance testing is a routine requirement in daily development work to find out the performance of services. So how to do performance testing? Either it is done by coding, writing a bunch of scripts, and throwing it away after use; or it is based on the platform, and it is carried out in the process defined by ...

Posted by almightyad on Thu, 30 Jun 2022 21:09:31 +0300

Write, append, read, and copy of golang files: examples of using bufio packages

Write, append, read and copy operations of golang files There is an OpenFile function under the os package of the Go language. Its prototype is as follows: func OpenFile(name string, flag int, perm FileMode) (file *File, err error) Where name is the file name of the file. If you are not running under the current path, you need to add the spe ...

Posted by teddmcload on Thu, 30 Jun 2022 16:56:27 +0300

Select structure_ Standard switch statement and selection structure_ Penetrated switch statement

Select statement   Select statement --switch switch statement format: switch(expression) { case Constant value 1: Statement body 1; break; case Constant value 2: Statement body 2; break; ... default: Statement body n+1; break; } First, calculate the value of the expression Secondly, compare with case in turn. Once there is a corr ...

Posted by vbmurray on Thu, 30 Jun 2022 16:48:25 +0300

IV. source code analysis of nacos Registry -- health detection

I. core principle flow chart II. The client monitors the server 2.1 implement udp listening The constructor of PushReceiver will trigger the initialization of listener public PushReceiver(HostReactor hostReactor) { try { this.hostReactor = hostReactor; this.udpSocket = new DatagramSocket(); thi ...

Posted by spitfire_esquive on Thu, 30 Jun 2022 16:41:17 +0300

MyBatisPlus configuration log, use of CRUD

Configuration log All our sql is invisible in mybatisplus, so we need to configure logs during development. After the development is completed, we can cancel the logs, because logs also consume resources #Configuration log mybatis-plus: configuration: log-impl: org.apache.ibatis.logging.stdout.StdOutImpl #Console output only logs Afte ...

Posted by Bike Racer on Thu, 26 May 2022 01:56:14 +0300

Graphical artifact Graphviz -- a good helper for learning data structure

   Official website Download and install the version of the corresponding system, and enter it in terminal dot -version can check whether the installation is successful. If the corresponding version information does not appear, you can consider configuring environment variables or reinstalling. 1. Basic grammar    like C langua ...

Posted by krish_s on Thu, 26 May 2022 01:13:13 +0300

Front and rear end development summary-1

SpringBoot 1, The WebMvc configuration class of springboot makes the static resources inaccessible The webmvc configuration class of springboot causes an error in accessing the static file. The specific error reason is not known (no detailed look at the source code). Generally, inheriting the WebMvcConfigureSupport class will cause such problem ...

Posted by parka on Thu, 26 May 2022 00:47:09 +0300

[SSM framework] Spring notes - AOP details; Use of four notifications in AspectJ

1. Aspect oriented programming AOP AOP (aspect oriented programming), aspect oriented programming. Facet: the common, general and repeated functions are called facets. Facet oriented programming is to extract the facets, develop them separately, and weave them into the methods to be called through dynamic agents.   2. "Evolution" of ...

Posted by nlhowell on Thu, 26 May 2022 00:40:17 +0300

LearnOpenGL Study Notes - Lighting 02: Lighting Basis

0 Preface The notes in this section correspond to the learning content on the official website: base lighting exist Light 01 We first learned about the concept of color and tried to make ambient light In this section, we will learn some simple lighting models. The original tutorial was introduced with the Phong lighting model, we introduced i ...

Posted by neuro4848 on Thu, 26 May 2022 00:20:59 +0300

Design Patterns Singleton Pattern and Factory Pattern

1. Singleton mode Eight ways of singleton mode: hungry (static constant), hungry (static code block), lazy (thread unsafe), lazy (thread safe, synchronized method), lazy (thread unsafe, synchronized code blocks), double checking, static inner classes, enums 1): Hungry Chinese style (static constant) ​ The constructor is privatized, the object i ...

Posted by Baseball on Thu, 26 May 2022 00:14:01 +0300