Tag:State machine

  • Asynchronous and promise

    Time:2020-10-31

    introduction In 16 years, I shared a promise in the company. I still remember that it was the first time to share, which was quite nervous. At that time, I mainly shared the use and basic principle of promise, and then I shared it with students from wireless department again.Looking back, I don’t think it’s […]

  • [MySQL source code analysis] MySQL lexical analysis

    Time:2020-10-31

    preface Recently, I have been studying MySQL source code intensively. I have just divided into several topics, including lexical parsing, syntax parsing, querier, optimizer, etc. Just to prepare the PPT content to pick out the corresponding articles. MySQL version: 8.0.20 Debugging tool: lldb System environment: MacOS 10.14.3 Before we understand the lexical analysis, we start […]

  • Nginx architecture and Fundamentals

    Time:2020-10-24

    Application scenarios of nginx There are three main application scenarios of nginx Static resource service Reverse proxy service API services Static resource service Nginx can provide services of static resources through local file system, such as pure static HTML pages. Reverse proxy service The operation efficiency of many application services is very low. QPS, TPS […]

  • Understanding and implementing promise from the perspective of state machine

    Time:2020-10-20

    The content of this article is mainly from a stack overflow high vote answer Statement: the realization of this promise is only to deepen my understanding of it. It is different from the a + specification. However, it is the most beautiful and clear thinking of all promise codes.The article will not specially help readers […]

  • “Pi Zi Heng embedded semimonthly” issue 17

    Time:2020-10-18

    PI Zi Heng embedded semimonthly: issue 17 Here are some useful and interesting projects / tools and some hot news in the embedded field. The Lunar New Year is divided into 24 solar terms. We hope to release an issue on time on each festival day. This journal is an open source projectJayHeng/pzh-mcu-bi-weekly)You are welcome […]

  • Lua calls the simple demo of DLL

    Time:2020-10-16

    Lua and C under Windows interact, I am a novice, can only do so much C code //#include “stdio.h” #include “windows.h” #ifdef _cplusplus extern “C”{ #endif #include “lua.h” #include “lauxlib.h” #include “lualib.h” extern int isquare(lua_State *L); extern int alert(lua_State *L); #ifdef _cplusplus } #endif int luaopen_add(lua_State *L){ lua_register( 50. / * Lua state machine*/ “Square”, […]

  • Tikv source code analysis series (18) commit and apply scenario analysis of raft proposal

    Time:2020-8-28

    After learning the previous article, I believe you have used the raft core library of tikvraft-rsHave a basic understanding.raft-rsThe core functions such as raft leader selection and log replication are implemented, and the operation of sending, receiving and applying messages to state machine needs to be implemented by users themselves. This paper will introduce the […]

  • recommend! A basic open source project for beginners of C + + server programming

    Time:2020-8-1

    When we just get started with C + + network programming, we will learn some basic API or the implementation of reflexive server, chat room and simple HTTP server in the book. After learning the above-mentioned foundation, most of the children want to do a decent project, but it seems that they don’t know how […]

  • Tikv source code analysis series (17) overview of raft store

    Time:2020-7-4

    First author: Li Jianjun, second author: Yang Zheyuan, Wang Cong As a distributed kV database, tikv uses raft algorithm to provide strong consistency. Raft algorithm provides the consistency of a single group, but a single group cannot be extended and balanced. Therefore, tikv adopts multi raft mode, and provides kV storage based on raft algorithm, […]

  • Blockstack-9: blockstack architecture

    Time:2020-6-24

    Original link: https://medium.com/coinmonks/blockstack-a-decentralized-naming-and-storage-system-using-blockchain-445ff60190f7 Part I: blockstack’s 4-tier architecture Blockstack’s 4-tier architecture: first floor:Blockchains like bitcoin store an authoritative global consensus on the state of the system. Layer 2 – Virtual Chain:A blockchain independent layer that accepts input from the blockchain and can create any type of state machine. For example, a DNS state machine can […]

  • Master-slave copy of redis source code analysis (3)

    Time:2020-4-29

    The core part of the master-slave replication process in redis code isFlow of state machine。 In stand-alone modeSLAVEOFCommand triggering;In cluster modeREPLICATECommand triggered, not supported in cluster modeSLAVEOFCommand. In this process, master and slave have different flow logic and interact frequently. The following content of this paper attempts to introduce the processing logic of slave, and […]

  • Week 1: good articles worth reading

    Time:2020-4-13

    SF product news Noodles “segment fault hot content optimization” Serial articles Neu “the first article of gradle for Android (from gradle and as)” and a series of articlesMuxi morning, GC Expert Series 1: understanding Java garbage collectionMuxi morning: GC Expert Series 2: Java garbage collection monitoring CSS Edward up coordinate space and position of 3D […]