A stateful service processing method, wherein the method is applied to a network interface card, the network interface card is connected to a host by using a bus, and the method comprises: preprocessing (S201) a first packet received from a network to obtain a coalescing message of the first packet, wherein the first packet is of a first connection, the first connection is a connection in which a stateful service is located and wherein the coalescing message of the first packet comprises at least one of the following: an identifier of the first connection, a function identifier of the first connection, wherein the coalescing message of the first packet further comprises metadata, wherein the metadata includes a message type of the first packet; when the coalescing message of the first packet meets a coalescing context of a first queue, coalescing (S202) the first packet into the first queue, wherein the first queue is any queue in a plurality of queues that is used to coalesce packets of the first connection, wherein each queue in the plurality of queues is used to coalesce a plurality of packets received from the network, wherein the plurality of packets belong to a same connection or the plurality of packets belong to a same message type of a same connection, and wherein the coalescing context of the first queue includes the identifier of the first connection and the message type of the first packet; when a preset condition is met, processing (S203), based on a context of the first connection, a plurality of packets coalesced in the first queue to obtain a second packet, wherein the context of the first connection indicates related information of the first connection, and the context of the first connection is an updated context obtained after a previous second packet of the first connection is obtained; and transmitting (S204) the second packet to the host. preprocessing (S201) a first packet received from a network to obtain a coalescing message of the first packet, wherein the first packet is of a first connection, the first connection is a connection in which a stateful service is located and wherein the coalescing message of the first packet comprises at least one of the following: an identifier of the first connection, a function identifier of the first connection, wherein the coalescing message of the first packet further comprises metadata, wherein the metadata includes a message type of the first packet; when the coalescing message of the first packet meets a coalescing context of a first queue, coalescing (S202) the first packet into the first queue, wherein the first queue is any queue in a plurality of queues that is used to coalesce packets of the first connection, wherein each queue in the plurality of queues is used to coalesce a plurality of packets received from the network, wherein the plurality of packets belong to a same connection or the plurality of packets belong to a same message type of a same connection, and wherein the coalescing context of the first queue includes the identifier of the first connection and the message type of the first packet; when a preset condition is met, processing (S203), based on a context of the first connection, a plurality of packets coalesced in the first queue to obtain a second packet, wherein the context of the first connection indicates related information of the first connection, and the context of the first connection is an updated context obtained after a previous second packet of the first connection is obtained; and transmitting (S204) the second packet to the host. <EOS>