Data storage method and server applicable to distributed server cluster

    公开(公告)号:US10764369B2

    公开(公告)日:2020-09-01

    申请号:US15890817

    申请日:2018-02-07

    Inventor: Tianyu Wang

    Abstract: Data may be stored in a distributed server cluster which includes a plurality of nodes. A specific implementation of a method for storing data in the distributed server cluster comprises: receiving a data write request, the data write request comprising to-be-written data; broadcasting the data write request to each of groups in the server cluster, the each of the groups comprising at least one node, and at least one of the groups comprising at least two nodes; and sending a notification message of successful writing to a client sending the data write request, in response to receiving a confirmation message fed back from more than a half of the groups.

    Method and device for forwarding data messages

    公开(公告)号:US10250515B2

    公开(公告)日:2019-04-02

    申请号:US15281328

    申请日:2016-09-30

    Inventor: Tianyu Wang

    Abstract: The present application discloses a method and device for forwarding a data message. A specific embodiment of the method comprises: receiving the data message and reading a data context length value of a first row in the data message; determining whether the data context length value is less than or equal to a maximum segment size in a single transmission according to a transmission control protocol; reading data from the data message in segments in response to the data context length value being less than or equal to the maximum segment size in the single transmission according to the transmission control protocol; reading data from the data message in rows in response to the data context length value being greater than the maximum segment size in the single transmission according to the transmission control protocol; and storing the read data in a user buffer, and sending the data in the user buffer to a terminal if the data in the user buffer exceeds a preset capacity threshold. According to this embodiment, the data messages can be quickly and efficiently forwarded.

    Method and apparatus for controlling database connection

    公开(公告)号:US10177970B2

    公开(公告)日:2019-01-08

    申请号:US15281234

    申请日:2016-09-30

    Inventor: Tianyu Wang

    Abstract: The present application discloses a method and apparatus for controlling a database connection. A specific embodiment of the method comprises: receiving an access request for a database sent by a terminal; determining whether a database connection pool comprises an idle database connection for the database; reusing the idle database connection to connect the terminal with the database if the database connection pool comprises the idle database connection for the database; and establishing a new database connection, in order to connect the terminal with the database by utilizing the new database connection if the database connection pool comprises no idle database connections. This embodiment effectively utilizes fewer database connections to support database access requests.

    SQL injection interception detection method and device, apparatus and computer readable medium

    公开(公告)号:US11108817B2

    公开(公告)日:2021-08-31

    申请号:US16156997

    申请日:2018-10-10

    Abstract: A method for detecting SQL injection interception is provided. The method includes: detecting a received SQL instruction according to a SQL syntax tree rule to determine that the received SQL instruction is a malicious instruction; and analyzing the received SQL instruction by using an analysis model to determine that the received SQL instruction is a potentially malicious instruction, in a case that the received SQL instruction is not determined to be a malicious instruction according to the SQL syntax tree rule. The method can combine the online detection and the offline analysis to intercept the invading malicious SQL commands, and can also find and supplement the loopholes of the rules through offline analysis.

    SQL INJECTION INTERCEPTION DETECTION METHOD AND DEVICE, APPARATUS AND COMPUTER READABLE MEDIUM

    公开(公告)号:US20190306191A1

    公开(公告)日:2019-10-03

    申请号:US16156997

    申请日:2018-10-10

    Abstract: A method for detecting SQL injection interception is provided. The method includes: detecting a received SQL instruction according to a SQL syntax tree rule to determine that the received SQL instruction is a malicious instruction; and analyzing the received SQL instruction by using an analysis model to determine that the received SQL instruction is a potentially malicious instruction, in a case that the received SQL instruction is not determined to be a malicious instruction according to the SQL syntax tree rule. The method can combine the online detection and the offline analysis to intercept the invading malicious SQL commands, and can also find and supplement the loopholes of the rules through offline analysis.

    METHOD AND DEVICE FOR FORWARDING DATA MESSAGES

    公开(公告)号:US20170346753A1

    公开(公告)日:2017-11-30

    申请号:US15281328

    申请日:2016-09-30

    Inventor: Tianyu Wang

    Abstract: The present application discloses a method and device for forwarding a data message. A specific embodiment of the method comprises: receiving the data message and reading a data context length value of a first row in the data message; determining whether the data context length value is less than or equal to a maximum segment size in a single transmission according to a transmission control protocol; reading data from the data message in segments in response to the data context length value being less than or equal to the maximum segment size in the single transmission according to the transmission control protocol; reading data from the data message in rows in response to the data context length value being greater than the maximum segment size in the single transmission according to the transmission control protocol; and storing the read data in a user buffer, and sending the data in the user buffer to a terminal if the data in the user buffer exceeds a preset capacity threshold. According to this embodiment, the data messages can be quickly and efficiently forwarded.

Patent Agency Ranking