It is like the server specs might be underpowered for Magento’s heavy resource demands. Have you tried optimizing Redis by bói tình yêu sắp đến, Elasticsearch, or enabling Varnish? That usually helps reduce 504s on similar setups.