Open R-Mahmoudi opened 1 year ago
@R-Mahmoudi Can you send information about the Redis visual client?
@Ali-YousefiTelori Redis is a high-performance key-value database. The emergence of redis largely compensates for the lack of key/value storage such as memcached , and can play a very good supplementary role in relational databases in some occasions. It provides Java, C/C++, C#, PHP, JavaScript, Perl, Object-C, Python, Ruby, Erlang and other clients, which are very convenient to use On the PLC side, accessors including Mitsubishi, Siemens, Omron, AB and Modbus Tcp clients support two modes, short connection mode and long connection mode. Now let’s explain the principle.
Short connection : Each read and write is a separate request, and it will be closed after the request is completed. If the port of the server only supports a single connection, the port can be reused by other connections after closing, but under frequent network requests, It is prone to exceptions, and other requests will be unsuccessful, especially in the case of multi-threading.
Long connection : create a common connection channel, all read and write requests are completed through this channel, in this way, the read and write performance is faster, even multi-thread calls will not be affected, and there is a synchronization mechanism inside. If the port of the server only supports a single connection, then this port is occupied, such as the port mechanism of Mitsubishi, and the Modbus tcp port mechanism of Siemens. The following code uses persistent connections by default, which has higher performance and supports multi-thread synchronization.
In the short connection mode, each request is a separate access, so there is no trouble of reconnection. In the long connection mode, if this request fails, the next request will automatically reconnect to the server until until the request is successful. In addition, try to make all reads and writes judge the success of the result.
@R-Mahmoudi I understand, We have to move this issue to caching system repository. We are in serialization. Thanks.
A Redis visual client, developed based on winform, can easily view and retrieve data from the server and facilitate debugging.