this post was submitted on 11 Sep 2023
1138 points (97.0% liked)

Programmer Humor

32018 readers
419 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 19 points 1 year ago* (last edited 1 year ago) (1 children)

Except each container has its own libc and any other dependencies. If any linked binary or library has a different inode, it gets loaded separately. I would say it is indeed quite similar, even if the images in question here aren't hundreds of megabytes in size like with Electron.

[โ€“] MotoAsh 4 points 1 year ago* (last edited 1 year ago)

The funny thing is, as much as people shit on Java, that's exactly what its Java EE container arch was for. Truly tiny microservices in wars, an entire app in an ear. All managed by a parent container that can dedup dependencies with a global class loader if done well, and automatically scale wars horizontally, too.

No idea how to get that level of sharing with OS-level containers.