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

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

24794783b45c456b21ff78d6d8259456?s=128

Tom McLaughlin

April 09, 2019
Tweet

Transcript

  1. 8.

    @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. 25.

    @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. 26.

    @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. 27.

    @tmclaughbos FIND DOWNSTREAM / FIX UPSTREAM { "_id": "00535cb6-443d-11e9-982d-8c859074f8c7", "location":

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