Kotlin actual combat [v] anomalies in kotlin

1, How kotlin throws exceptions Exception handling in Kotlin is similar to that in Java or other languages. A function can end normally or throw an exception when an error occurs. The function caller catches the exception and handles it; If not, the exception is thrown up the call stack again. The basic form of exception handling statements i ...

Posted by Jtech on Tue, 09 Nov 2021 14:04:02 -0800

Elasticsearch learning notes II

Learn the second of the notes made by Elasticsearch. catalogue 1, elasticsearch overview. 2, Comparison and selection of Solr and elasticsearch. 1. solr overview. 2. Lucene overview. 3. Applicable scenarios and comparison of Solr and elasticsearch. 4,elasticsearch-head. 3, Kibana overview. 1. kibana overview. 2. kibana is sinicized. ...

Posted by jawaking00 on Tue, 09 Nov 2021 13:06:09 -0800

Summary of JAVA Chapter 15 network communication

After class questions 1-5 1. How many layers are the network communication protocols divided into? What are the problems solved by each layer? >>OSI layer 7 protocol   OSI seven layer network modelfunctionapplication layerDirectly provide services for the user's application processPresentation layerProvides a standard format for net ...

Posted by studgate on Tue, 09 Nov 2021 12:44:04 -0800

< 2021SC@SDUSC Software engineering application and practice of Shandong University JPress code analysis

2021SC@SDUSC This article analyzes the direct package and sitemap package of module page web. Note: because the code is short and concise, the analysis of the code is placed in the remarks of the code segment. 1.directive package architecture This folder contains three classes and a static inner class. PageCommentPageDirective.java prov ...

Posted by siddscool19 on Tue, 09 Nov 2021 11:33:56 -0800

Complete custom message protocol design with Netty

Message Protocol The concept of a message protocol sounds very tall, but what does a message protocol really mean? Message protocol refers to how the data (messages) transmitted by both sides of the communication express their description. For example, HTTP protocol, when a browser opens a web page, it first establishes a connection ...

Posted by explore on Tue, 09 Nov 2021 10:49:14 -0800

Talking about distributed unique IDs, this article is very real

Introduction to distributed unique IDThe globally unique id of a distributed system is a scenario encountered by all systems. It is often used in search and storage as a unique identification or sorting, such as the globally unique order number and coupon code of a coupon. If two identical order numbers appear, it will undoubtedly be a huge bug ...

Posted by samyl on Tue, 09 Nov 2021 10:18:29 -0800

In depth analysis of RocketMQ source code - message storage module

1, Introduction RocketMQ is Alibaba's open source distributed messaging middleware. It draws on Kafka's implementation and supports functions such as message subscription and publishing, sequential message, transaction message, timing message, message backtracking, dead letter queue and so on. RocketMQ architecture is mainly divided into four ...

Posted by stallingjohn on Tue, 09 Nov 2021 02:39:19 -0800

All extensible points in the Bean's life cycle in the Spring container

1. Background In this article, I summarized almost all the extension interfaces of Spring & springboot, as well as the usage scenarios of each extension point. And sorted out the sequential call graph of all extensible points from being loaded to the final initialization of a bean in spring. Thus, we can also see how beans are loaded int ...

Posted by oceans on Tue, 09 Nov 2021 00:19:23 -0800

The second layer of Flink execution plan - StreamGraph

1, Localstreaminenvironment Localstreaminenvironment is a subclass of streaminexecutionenvironment. It runs programs locally, multithreaded, and in the JVM that instantiates localstreaminenvironment. It generates an embedded Flink cluster in the background and executes programs on the cluster. When instantiating this environment, it uses the de ...

Posted by capbiker on Tue, 09 Nov 2021 00:10:46 -0800

[design mode] yuan sharing mode, the guiding ideology of pool technology.

What is Flyweight concept Flyweight Pattern is a structural pattern, which is mainly used to reduce the performance consumption of object creation and destruction, so as to reduce the occupation of memory. Object oriented language can bring some flexibility and expansibility to our development, and it is more in line with people's way of thin ...

Posted by AndyEarley on Mon, 08 Nov 2021 23:51:45 -0800