2 ms·
btw, assuming you're deploying on kubernetes: you're omitting the 500 lines of yaml needed to deploy that, the tens of megabyte for the python base image (of w
by znpy 4y ago
btw, assuming you're deploying on kubernetes:
you're omitting the 500 lines of yaml needed to deploy that, the tens of megabyte for the python base image (of which you'll waste more than 99.99%) and the tens of megabytes in bandwidth to the docker registry and to download it on the kubernetes worker... And the image wight should be accounted at least four times: worker node + 3 in the docker registry (ha and stuff).
it's incredibly inefficient if you just freaking want to know if a file exists.