Giter VIP home page Giter VIP logo

quaich's Introduction

quaich

A Scala “Serverless” Microframework for AWS Lambda, inspired by Amazon's Chalice (https://github.com/awslabs/chalice)

WTF is a "quaich"

Amazon named their version of the AWS Lamba Microframework “Chalice”, which references what we suppose is a perfectly acceptable drinking vessel.

Being partial to whisky, however, the quaich (pronounced as 'quake') – A Scottish two-handled drinking bowl, often used to serve whisky – sounded like a better inspiration. Sir Walter Scott was said to have served whisky from a quaich carved from the elm tree that served as the Duke of Wellington's command post at the Battle of Waterloo. Which is pretty awesome.

AWS Lambda is an interesting emerging platform for “serverless” programming. Entirely event driven, it provides an easy model to handle both ‘built-in’ Amazon events – such as DynamoDB & S3 Bucket changes, and HTTP calls through services such as Amazon's API Gateway... as well as custom events. Being “serverless”, Lambda allows us to drop in simple JVM code via assembly JAR that responds through an event loop, minimizing execution costs and eliminating the need to setup and maintain dedicated server instances.

quaich (pronounced ‘quake’) is a Scala microframework, inspired by the Python based chalice released by Amazon recently. The concept is simple, single file applications that can receive and handle the JSON events pushed by the Lambda system. Through clever tricks with macros, etc. we provide an easy model for defining your routes files and even parsing custom variables.

Authors

TODO

  • Logging support
  • Flexibility using both core, structured base handler APIs such as Amazon provides, and customizable ones.
  • Support for multiple pluggable JSON libraries, because Scala has about 64k of them and everyone has their own preference
  • Magnet pattern for HTTP Responses vs. type classes?
  • sbt deployment plugin
  • Support for POJO translation
  • Support for S3 & DynamoDB Triggers
  • Offline simulator for easier testing / dev. There's an interesting one for Node
  • Explore support for Alexa/Amazon Echo integration, as well as IoT buttons. Thanks a ton to Dick Wall for the truly superb idea. And deep Pinky & the Brain Knowledge.

Notes

Permissions I've been setting on my roles:

  • AmazonAPIGatewayPushToCloudWatchLogs
  • AmazonS3ReadOnlyAccess
  • AWSLambdaExecute

quaich's People

Contributors

bwmcadams avatar tlockney avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.