Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Serverless DevOps: What do we do when the server goes away?

Serverless DevOps: What do we do when the server goes away?

Tom McLaughlin

April 09, 2019
Tweet

More Decks by Tom McLaughlin

Other Decks in Technology

Transcript

  1. @tmclaughbos WHAT IS SERVERLESS? • No servers to manage or

    provision • Pay only for what you actively use • Service scales with usage • Availability and fault tolerance built in
  2. @tmclaughbos MAKING CODE HANDLE FAILURES def _put_record(record): '''Write record to

    DDB''' try: DDT.put_item( TableName=DDB_TABLE_NAME, Item=ride_record ) except Exception as e: _logger.exception(e) raise e
  3. @tmclaughbos MAKING CODE HANDLE FAILURES # Retry with exponential backoff

    and stop within function timeout. @retry( wait=wait_random_exponential(), stop=stop_after_delay(15) ) def _put_record(record): '''Write record to DDB''' try: DDT.put_item( TableName=DDB_TABLE_NAME, Item=ride_record ) except Exception as e: _logger.exception(e) raise e
  4. @tmclaughbos FIND DOWNSTREAM / FIX UPSTREAM { "_id": "00535cb6-443d-11e9-982d-8c859074f8c7", "location":

    { "latitude": "", "longitude": "" }, "user": { "firstname": "Tom", "lastname": "McLaughlin" } }