METHODS: HAPI FHIR server, python websocket clients and HTTP endpoints were used to measure the processor and memory usage of the two subscription channels. Tests were performed with 5, 10, 15, 20, 30, 40, 50, 60, 70 and 80 clients. The performance was logged using windows performance monitor.
RESULTS: The rest-hook subscription showed near six-fold increase in resource utilization when increasing the clients from 5 to 80. On the contrary, the websocket subscription channel did not reach a two-fold increase.
CONCLUSIONS: The type of the subscription channel should be carefully selected and load distribution should be considered when the number of clients grows.
方法:HAPIFHIR服务器,pythonwebsocket客户端和HTTP端点用于测量两个订阅通道的处理器和内存使用情况。对5、10、15、20、30、40、50、60、70和80个客户进行测试。使用windows性能监视器记录性能。
结果:当将客户端从5个增加到80个时,rest-hook订阅显示资源利用率增加了近六倍。相反,websocket订阅频道没有达到两倍的增长。
结论:应仔细选择订阅通道的类型,并在客户端数量增加时考虑负载分配。