Current Limitation for Internet High Concurrency

RPC remote invocation can be cross-platform. HTTP protocol is generally adopted. Socket technology is used in the bottom layer, so long as the language supports socket technology, it can communicate. Open platforms generally use http protocol because they support more languages. Reprint address: htt ...

Added by SiriusB on Thu, 25 Jul 2019 10:37:09 +0300

Andorid Componentized Jump Routing

Brief introduction Routing plays a very important role in component engineering. How do two module s communicate without mutual reference? We can use EventBus, broadcast, class loading, reflection, scheme, implicit intention and so on. Each of these methods has its own advantages and disadvantages. In ...

Added by mrmachoman on Wed, 24 Jul 2019 12:36:05 +0300

Initial contact with gRPC golang

Summary gRPC uses protocol buffers as IDL (Interface Definition Language), which provides a cross-platform, cross-language RPC (Remote Procedure Call) mechanism, this paper introduces the basic use of gRPC through an example program. Preconditions Go Version 1.6 and above ( Delivery) $ go version Install gRPC $ go get -u google.golang.org/g ...

Added by deception54 on Wed, 17 Jul 2019 19:16:12 +0300

Talk about long lists in front-end development

Front-end business development will encounter some lists that can not be loaded by paging, which we generally call long lists. In this article, we define long lists as lists with data lengths greater than 1000 and cannot be presented in paginated form. This article explores the following topics: Is it possible to optimize the long list of fu ...

Added by bobthebuilder on Sun, 14 Jul 2019 23:53:40 +0300

JAVA [Elaboration] Analysis RunTime error from the bottom, Cmd command execution is normal

Du Jinyang, the Superman of Ottoman, once said, "It is better to perish outside the law than to live in it." Maybe you will often encounter the following problems in development, but Baidu Google can not come out, bloggers trample on the pit to share with you: Error CreateProcess error=2, ______________________ JAVA cmd ...

Added by skroks609 on Sun, 14 Jul 2019 23:42:17 +0300

Google Protobuf Encoding and Decoding (Serialization/Deserialization) Framework

Encoding/decoding is also called serialization/deserialization in Java. The serialization and deserialization technology of Java itself generates too much binary stream and has low conversion efficiency. It is generally not suitable for the encoding framework of remote cross-node calls. Protobuf, known as Protocol Buffers, comes from Google Op ...

Added by Hallic7 on Sat, 13 Jul 2019 05:43:15 +0300

WeChat mars Open Source Analysis 1-Upper Saples Analysis

WeChat has already started mars, but there are few related articles on the market, even if there are many such as using xlog, so this time I hope to be able to analyze from stn, which is directly used for the bottom communication of im.To be more comprehensive, let's start with samples.First of all, WeChat explicitly replaced JSON and xml with ...

Added by nads1982 on Fri, 12 Jul 2019 19:12:55 +0300

Design of Application Context

Basically, each application will have its own Application, which inherits from the Application class of the system, and then encapsulates some common operations in its own Application class. In fact, this is not a recommended practice for Google, because we just use Application as a general tool class, and in fact use a simple singleton class c ...

Added by sungpeng on Thu, 11 Jul 2019 21:54:53 +0300

Method of Android adapting bottom virtual keys

Recently, when adapting the project, it was found that some of the mobile phones (such as Huawei Mobile Phone) had virtual keys at the bottom. Because of the existence of virtual keys, some of the interfaces were blocked. Because of the need for full screen display, the virtual keys hiding method was called to hide them. However, the following ...

Added by mahakmx on Wed, 10 Jul 2019 23:20:46 +0300

Snackbar source code parsing

Introduction In May 2015, Google released Design Support Library, adding many components to support Material Design. It has been two years since then, and the version has changed from 22.2.0 to 26.0.0 Alpha 1. To understand the principle of control implementation, of course, from the simplest start, that is the main character of this arti ...

Added by flyersman on Tue, 09 Jul 2019 23:51:53 +0300