chalice

ruling a domain without a server

AWS serverless architecture

  • API Gateway
  • Lambda

chalice, a serverless microframework

  • chalice library
  • chalice command line

$ pip install chalice
$ chalice new-project myapp
          

from chalice import Chalice

app = Chalice(app_name='myapp')

@app.route('/')
def index():
    return {'hello': 'world'}
          

$ chalice deploy
          

pluses

  • dead simple
  • no infrastructure
  • easily scalable
  • it's micro!

minuses

  • it's REALLY micro

but is serverless cheaper?

https://www.trek10.com/blog/lambda-cost/
  • you pay almost nothing for lightweight workloads
  • occasional usage spikes don't add much to the cost
  • VMs are probably cheaper for consistent heavy use