Tag:Buffer

  • Notes of C + + primer Chapter 8 IO Library

    Time:2021-4-19

    Iostream defines the basic types for reading and writing streams, fsstream defines the types for reading and writing named files, and ssstream defines the types for reading and writing memory string objects. The standard library enables us to ignore the differences between these different types of flows, which is implemented through the inheritance mechanism. Because […]

  • From Kafka to NiO

    Time:2021-4-19

    Before talking about NiO, let’s briefly review the kernel state and user state Kernel space is the running space of Linux kernel, while user space is the running space of user program. In order to ensure the kernel security, they are isolated. Even if the user’s program crashes, the kernel will not be affected.Kernel space […]

  • 3 cheap machines write 2 million per second! Why is Kafka so fast?

    Time:2021-4-19

    Author: Bing Yue, introduction: Senior Engineer of Alibaba, focusing on distributed system and high availability architecture, methodology and cognitive upgrading, practice and continuous learning. source: www.cnblogs.com/binyue/p/10308754.html Kafka in 30 seconds Let’s take a quick look at Kafka and some details about how it works. Kafka is a distributed messaging system. It was first established in […]

  • In depth analysis of redis high availability series: persistent AOF and RDB

    Time:2021-4-14

    Welcome to official account brother: “code farmer rich brother”, dedicated to share the back-end technology (high concurrent architecture, distributed cluster system, Message Queuing Middleware, network, micro service, Linux, TCP/IP, HTTP, MySQL, Redis), Python and other original dry cargo and interview guide! Free video benefits recommendation: 2T learning video tutorial + e-book free: bat interview intensive […]

  • The function of index, why can it improve the retrieval speed?

    Time:2021-4-7

    Index can improve the retrieval speed of MySQL. In fact, the index is also a table, which holds the primary key and index fields and points to the records of the entity table. Why can we improve retrieval speed Index is to arrange the order in advance, so that the efficient algorithm such as binary […]

  • Java one year, interview summary

    Time:2021-4-4

    Xiaoxiao went to the interview again. Today’s interview is summarized as follows First question The database has the following table, and the table structure is as follows Employee number post Organization code employeeID JobTitle OrganizationCode It is required to prepare the staff with more than 10 employees in the DepartmentWrite the corresponding SQL statementanswer select […]

  • Interviewer: what is the garbage collection mechanism of PHP

    Time:2021-3-31

    Interview questions: selected topics. PHP interview questions about PHP’s garbage collection mechanism. PHP’s garbage collection mechanism refers to GC mechanism. PHP can automatically manage memory and clear unnecessary objects. PHP interview questions share PHP’s interview questions about garbage collection mechanism My PHP learning and communication community-1023755567. Group management is ready, bat and other advanced knowledge […]

  • Notes on C / C + + Programming: I / O redirection in C + +

    Time:2021-3-27

    In C language, we can use the function freepen() to redirect the existing file pointer to another stream. The prototype of freeopen() is File * FREE (const char * file name, const char * mode, file * stream); For example, to redirect standard output to a text file, we can write freopen(“ text_file.txt”,“ w”,stdout); Although […]

  • Summary of the first C + + program design

    Time:2021-3-26

    This week mainly carried on the library system design, learned a lot with C + +, weekend record On C + + input and output stream As for this flow, it has always been rather vague, so I have sorted out the general outline today flow Have you ever thought about how to compare the […]

  • Summary of the first C + + program design

    Time:2021-3-26

    This week mainly carried on the library system design, learned a lot with C + +, weekend record On C + + input and output stream As for this flow, it has always been rather vague, so I have sorted out the general outline today flow Have you ever thought about how to compare the […]

  • Writing and synchronization of AOF file

    Time:2021-3-19

    In redis, the client sends related write command requests to the server. At this time, the server has an event cycle process to process these commands, processes these commands, and feeds back the results of related information processing to the client, such as “OK”. Meanwhile, during this period, the command requester in the server will […]

  • Use docker to build nginx cluster to realize load balancing

    Time:2021-3-19

    Recently, I have been busy with some trivial things. I have several topics and have been struggling with which one to write. I finally decided to start with the simple one. Simple is often more trivial, familiar with the small partner can 1.5 times the speed to browse ha Environment based on centos7, docker installation […]