There is probably no perfect method for each situation, but the jerk is usually better and is used more often. This allows you to optimize caching and data transfer, which helps increase productivity and scalability, as well as reduces network traffic, avoiding client requests and empty responses. This can be an important advantage so that the server runs at its own pace and delivers data to clients when it is ready.
Industry standards - such as OPC, GID - support both. The server pushes updates to signed clients, but the client can retrieve some rarely used data without worrying about the subscription.
source share