News for hackers. Stuff that matters.
Re:Prime Video Abandons Serverless Distributed Stack for Mon... by mike_hearn on Thursday May 04, 2023 @05:02AM (#35812886)
Doesn't Docker use cached image layers to solve that? Your PDF rendering could be in one layer that never changes, and the rest goes on top.
Re:Prime Video Abandons Serverless Distributed Stack for Mon... by franga2000 on Thursday May 04, 2023 @05:40AM (#35813086)
The problem is when you have more than one such service. Now when one of them changes, all of them need to be rebuilt. You can solve this with multi-stage builds, but those only work if your build result can be easily copied.
Re:Prime Video Abandons Serverless Distributed Stack for Mon... by mike_hearn on Thursday May 04, 2023 @10:08AM (#35815564)
Is the issue here that images shouldn't be thought of as layers, but rather a tree of cached directory nodes? I don't quite follow what's meant by building here, are you referring to compiling or merging the resulting build artifacts into a final container image?

Non-copyable build outputs sound a bit wild - you're thinking of builds that encode absolute paths into the output binaries?

Re:Prime Video Abandons Serverless Distributed Stack for Mon... by boxed on Thursday May 04, 2023 @07:25AM (#35813782)
In theory yes, but that doesn't work well on github actions for example. The cache layering seems quite bad there for some reason.