title: AWS Lambda c# asynchronous API calls
body: <p>I have a AWS lambda function written in c#. This function is responsible for calling 5-6 API calls (Post requests). </p>
  
  <ol>
  <li>All of these API calls are <strong>independent</strong> of each other.</li>
  <li><strong>I do not care of the about the responses</strong> from any of these API calls.</li>
  <li>Each of the API call takes about 5 seconds to complete even though I do not care about the follow up response.</li>
  </ol>
  
  <p>Question:
  I want my lambda function to execute and respond within a second. How can I asynchronously make my API calls such that lambda function can finish all of these within my time limit without waiting for the responses from the API calls? Ideally, I want to implement a fire and forget API call system that sends the final response back without any delay.</p>
  
  <p>According to AWS lambda <a href="http://docs.aws.amazon.com/lambda/latest/dg/dotnet-programming-model-handler-types.html#dot-net-async" rel="nofollow noreferrer">documentation</a>, I have to use <strong>await</strong> operator with asynchronous calls in lambda to avoid the function being completed before the asynchronous calls are finished. </p>
  
  <p>Am I missing something here? Or is there a way to accomplish this?</p>
  
  <p>Thanks</p>