Home > Backend Development > PHP Tutorial > About reading the online device list in redis

About reading the online device list in redis

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-09-13 08:46:03
Original
1125 people have browsed it

Use redis to save online devices. Operate redis in TCP Server (java netty implementation), add updated data, and then view it on the background management page (the background logic processing is based on thinkphp).
There are two options now:
1 is to use php to read the device online data directly from redis
2 is to interact with websocekt and TcpServer in the web page, and then the TCP Server reads the online device in redis, and then returns it through websocket.
Which one is better? How is it generally implemented?

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
Install JAVA
From 1970-01-01 08:00:00
0
0
0
Unable to install java
From 1970-01-01 08:00:00
0
0
0
Can java be used as the backend of the web?
From 1970-01-01 08:00:00
0
0
0
Is this in Java language?
From 1970-01-01 08:00:00
0
0
0
Help: JAVA encrypted data PHP decryption
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template