79586390

Date: 2025-04-22 11:52:31
Score: 3.5
Natty:
Report link

Suppose in general, if I use AWS Lambda layers for dependencies like pandas or tabula-py, which individually can exceed 50+ MB, do I need to create a separate Lambda layer for each dependency if my project has around 10 such libraries?

I'm trying to understand the best practice here:

Should I bundle all heavy dependencies into one layer?

Or should I split them into multiple layers, one per library?

Also, how do I handle size limits in this scenario?

Explored Lambda layers, but not sure about the layer strategy when multiple large libraries are involved.

What i expect -

A best-practice recommendation for managing multiple large Python dependencies using Lambda layers

Reasons:
  • Blacklisted phrase (1): how do I
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Sarvesh