🟢

AWS Lambda – SnapStart

  • Boosts function performance by up to 10x at no additional cost.
  • Currently supported for Java, Python, and .NET runtimes.

How It Works

  • On version publish:
      1. Lambda initializes the function once.
      1. Captures a snapshot of the memory and disk state after initialization.
      1. Stores the snapshot for low-latency reuse.
  • On invocation: Lambda restores the snapshot instead of running initialization code.

Invocation Lifecycle

  • Without SnapStart: InvokeInitInvokeShutdown
  • With SnapStart: InvokeInvokeShutdown (pre-initialized)
Eliminates the cold start initialization phase, reducing startup latency significantly.