4 ms·
Yes, that's ideal. But: * Sometimes it's not efficient to break a task down or it simply can't be done. * Sometimes it just makes the code hard to maintain if
by chadash 7y ago
Yes, that's ideal. But:
* Sometimes it's not efficient to break a task down or it simply can't be done.
* Sometimes it just makes the code hard to maintain if breaking it down into different components is a difficult task
An example I can think of is loading a very large CSV file into a database. Lambda doesn't have enough memory to read the whole file and even if it did, it might take more than 16 minutes to run. I can try to break it out into multiple tasks and it'll probably be faster, but reading that code is (generally) gonna be much harder.