Swoole entry to the actual live events to create a high-performance platform (full version)

Thinkphp + Swoole entry to the actual live events to create a high-performance platform

Chapter 1 Introduction Course

Welcome to the swoole of course! This chapter is to introduce some of the characteristics swoole, as well as usage scenarios, and share swoole in some cases other companies, and finally focus on explaining some of the preparatory work swoole learning.

Chapter 2 PHP 7 Source Installation

A lot of good work for years PHPer source compiler installation is not very understanding, in fact, this situation is very scary. This chapter I will teach you how to install PHP7 through source code, and simplify PHP execute the command. Finally, focus on explaining the source installation stepped pit, allowing you to take a lot less detours source compiler installation.

Chapter 3 source compiler installation swoole

Swoole installation there are two kinds: a fool installation and source code compiler installation! This section I will guide you through the installation Swoole source compiler extensions, so that we truly to understand Swoole installation and parameter settings. Finally, let PHP support Swoole, and then open the first swoole program!

Chapter 4 Fun Network Communications Engine

This chapter focuses on the TCP UDP HTTP websocket communications engine. In swoole http server will lead us to contrast the traditional http, and teach you how to configure swoole http let him access support static resources; at the same time to explain in detail how to use Swoole websocket easily solve client and server-side long connection problem; using Swoole offers asynchronous time-consuming task task perfect solution to the actual work scenarios faced in this chapter will be particularly thin ...

Chapter 5 asynchronous non-blocking IO scene

PHP + Crontab Timing task to do is a very common case, but Crontab only be accurate to the minute level, Swoole millisecond timer accurate easy to finer efforts. This chapter explain in detail the millisecond timers, asynchronous file read and write, asynchronous Mysql, and an asynchronous Redis and every scene with case to explain, so that small partners to easily understand these scenarios; and finally to let Swoole Redis supports asynchronous courses also teach you how to compile and install the source code h ...

Chapter 6 process memory coroutine

Native PHP does not support multi-threaded, multi-process support is not very good. Swoole provides a good multi-process treatment program. Course explains in detail the process and to analyze the usage scenario Swoole process through a scene, so that small partners have a new awareness of Swoole process; how to share data in a multi-process neutron and child processes and sub-processes and main process? courses be introduced by the memory of this topic, and explain in detail the Swoole table modules, such as ...

Chapter 7 live matches - Login Module

After the completion of the previous study Swoole, we began officially entered into the combat phase of the project! Project framework we use Thinkphp 5.0, a project of the static pages are deployed in a single module, all his data is acquired back-end data by Ajax; do before and after the end of the separation; log in case we use the characteristics of swoole http, Login way we use phone number + SMS verification code to log and store the data to Redis, at this ...

Chapter 8 live matches - Live Module

In this chapter we will implement the program list event page; page events live event data page; the live matches of the page because the client and the server must be connected to maintain a long-term, so there is a new back-end data when the page to live in real time presentation, this is the place we use swoole inside websocket and will be handled in conjunction with asynchronous task task content of the response, the content of events we support picture + text; the course will explain the open ...

Chapter 9 live matches - Chat module

This chapter I will lead you Swoole websocket use chat rooms and other knowledge modules! Chat module means each user can be logged in real time and chat with other users, surf the game experience, and we will use characteristics swoole to get the number of online users.

Chapter 10 System Monitoring and Performance Optimization Module

Stable operation of the system is every engineer must consider the depth, if a system's instability line, no matter how advanced your technology solutions that your system is not reliable systems; curriculum using the Linux + Swoole + PHP monitoring platform stability, for the escort service; how to deal with high traffic real-time online system services to enhance user performance of this course to give us dry content, combined with their 7-year big Internet experience will teach you without reservation ...

Chapter 11 Lessons Learned

 

 

Links: https://pan.baidu.com/s/1kVY51emY_8lJdNf_cIHEvQ

Extraction code: evr6

Content to reprint, please contact discomfort

Guess you like

Origin www.cnblogs.com/yuyu6/p/11351426.html