title: Recursive invocations / fork invocations in AWS Lambda
body: <p>I'm using AWS Lambda in NodeJS. With this lambda, I want to <strong>add a book</strong> in DynamboDB. It works fine.</p>
  
  <p>Now, I want to do it for a <strong>list of books</strong>. I have some ideas but I don't know if it's possible in AWS lambda.</p>
  
  <h2>idea 1 : fork several lamba</h2>
  
  <p>I'm wondering if it's possible to have a "master" Lambda that have a list of books to add, and <strong>foreach books</strong> invoke a lambda function "insert book". The maximum timeout is 5 minutes so it's possible to make an asynchronous invocation from the "master" lambda in order to not wait for all forked lambda process ?</p>
  
  <h2>idea 2 : recursive invocations</h2>
  
  <p>Create a generic lambda that process the first book of a list of books passed as input. At the end of the process, remove the book from the list (if OK) and invoke the same lambda with the updated List.</p>
  
  <p>Note : the first invocation need to get the list of books.</p>
  
  <p>Many thanks for your help !</p>
  
  <p>Romain.</p>