Why don't we use Spring?

  • Spring is a heavy framework (compared to a pure Java program)
  • Even small servers take a few seconds to start
  • Because of cold-starts, that would mean some users get a 4+ second penalty on startup
  • Also Lambdas expect specific events. Spring expects an HTTP request

15 / 25