4 ms·
do you mind sharing exactly what problems you've had with Python?
by cheez 6y ago
do you mind sharing exactly what problems you've had with Python?
- throwaway894345 6y agoPerformance and dependency management are the big ones. Huge binaries are another pain point as well. We would like to run code in lambda functions, but the binaries (which aren’t that complicated) are too big 250MB so we have to run them in ECS tasks which take something like 30s to start up and building the images takes a lot longer as well (we could probably spend time to optimize the docker image builds).
- cheez 6y agoI run lambda functions in Python but I just upload the code. I suppose you are using lambda functions in a way that isn't really promoted for Python.
- throwaway894345 6y agoWe also “just upload the code”; however, the issue is that the code size is too large. Lambdas can only be 250mb, and if your dependency tree includes Numpy that’s 70mb alone. Go binaries are about 2 orders of magnitude smaller than Python binaries by my crude estimation. Go compiles source code to native machine code and the linked trims dead code. Neither of these are possible in Python, so you get enormous binaries.
- cheez 6y agoI can see why that's a problem. No tree shaking either in Python. Still it seems like aws can solve the problem by lifting your limits or something.