3, Communication between multiple threads

preface 1, synchronized and Volatile volatile Visibility can be guaranteed, but atomicity cannot be guaranteed (thread safety problem) Prohibit reordering synchronized Both visibility and atomicity can be guaranteed Reordering is not prohibited synchronized is blocking. Only one thread can access it at a time 2, Reorder Concept: the c ...

Posted by FUEL on Sun, 06 Mar 2022 15:32:33 +0100

PHP builds a high-performance API architecture based on SW-X framework

preface Official website address: SW-X framework - PHP swoolex framework focusing on high-performance and convenient development I hope the big guys raise their hands and give my little brother a star: https://github.com/swoolex/swoolex 1. 404 interface configuration In the HTTP service, when the corresponding route cannot be found, it will ...

Posted by nikes90 on Fri, 04 Mar 2022 08:05:05 +0100

Introduction to DevOps-7-K8S

Introduction to Lec7-K8S 1. Why do you need K8S? 1.1. What is the container? Container is the representative of resource refinement.Container usually refers to the process running in an isolated environment and the environment on which the process depends. Isolation: with the help of linux namespace mechanismResource limitation: cgroup c ...

Posted by We Must Design on Thu, 03 Mar 2022 02:12:57 +0100

Grouping and aggregation using Java streams

Understand the direct way to solve problems with Java Streams, which is a framework that allows us to process large amounts of data quickly and effectively. When we group the elements in the list, we can then aggregate the fields of the grouped elements to perform meaningful operations to help us analyze the data. Some examples are additio ...

Posted by shibiny on Mon, 28 Feb 2022 13:08:36 +0100

Simple automated build environment

previously on At the end of 2021, idle teachers began to prepare for the service of enterprise projects and built a basic cluster. Of course, the cluster should be used when it is built. This article introduces how to use open source software to build a set of automatically built project environment. With this environment, project development ...

Posted by hagman on Mon, 28 Feb 2022 08:53:02 +0100

Actual combat of microservice architecture development: the difference between fusing and degradation and how to integrate Hystrix

Difference between fusing and degradation Many developers will be confused about the difference between fusing and downgrade. The similarities and differences between the two are summarized below. Similarities between fusing and degradation Service degradation and service fusing are similar from some angles. ·Same purpose. Both are t ...

Posted by Spaceboy on Sat, 26 Feb 2022 07:41:34 +0100

Introduction to Minio, stand-alone and cluster deployment, JAVA upload and download practice

Official website address https://min.io/ Official website document https://docs.min.io/docs/minio-quickstart-guide.html Download address https://dl.min.io/ Basic concepts Object: the basic object stored in Minio, such as file and byte streamBucket: the logical space used to store objects. The data of each bucket is isolated from each oth ...

Posted by stueee on Fri, 25 Feb 2022 16:31:59 +0100

Detailed explanation of Mybatis SQL mapping file

Before that, we learned the global configuration file of mybatis. Now we begin to learn the mapping file of mybatis. In the mapping file, you can write the following top-level element labels: cache – Cache configuration for this namespace. cache-ref – Cache configuration that references other namespaces. resultMap – Describing how to load obje ...

Posted by Buddski on Wed, 23 Feb 2022 08:01:31 +0100

[camp] at the beginning, improve the power of [leopard] - vivo activity plug-in management platform

1, BackgroundWith more and more activity components in vivo Wukong activity, the partners in the development of activity platform increasingly perceive that we lack a component library that can precipitate the general ability and improve the reusability of code. On the basis of this goal, acitivity components were born. However, with the increa ...

Posted by qaokpl on Tue, 22 Feb 2022 04:12:46 +0100

Kube scheduler source code analysis - initialization and startup analysis

Kube scheduler source code analysis (1) - initialization and startup analysis Introduction to Kube scheduler Kube scheduler component is one of the core components in kubernetes. It is mainly responsible for the scheduling of pod resource objects. Specifically, Kube scheduler component is responsible for scheduling the unscheduled pod to the ...

Posted by newzub on Sun, 20 Feb 2022 07:36:20 +0100