Microservices in action: How to actually build them

Post on 16-Apr-2017

1.578 views 0 download

Transcript of Microservices in action: How to actually build them

Microservices in action: How to actually build

themAndrzej Jarzyna, the API guy from 3scale ;)

APIs on Lambda and API Gateway

•Lambda Functions - microservices written in JS/Python/Java hosted on Amazon Cloud

•API Gateway - a ‘front door’ to access your APIs endpoints

API Meetup BCN, Nov. 2015 Andrzej Jarzyna

Features of Lambda• functions ran on a ‘serverless’ cloud

• have access to other AWS services, http endpoints and in-app events

• runs only when triggered (stateless)

• pay only when called

API Meetup BCN, Nov. 2015 Andrzej Jarzyna

Lambda costs

API Meetup BCN, Nov. 2015 Andrzej Jarzyna

Amazon API Gateway

Demo

API Meetup BCN, Nov. 2015 Andrzej Jarzyna

API Meetup BCN, Nov. 2015 Andrzej Jarzyna

JAWS• JAWS - The Serverless Application Framework

• manages Lambda and API Gateway project structure

• takes care of Roles and Policies management for you

• automated provisioning of new stages and regions

Demo

API Meetup BCN, Nov. 2015 Andrzej Jarzyna

Extend API Gateway Capabilities

• Through Lambda you can integrate with additional services to extend the API Gateway capability

• Add authentication layer per application

• Use 3scale API management platform

API Meetup BCN, Nov. 2015 Andrzej Jarzyna

Integration with 3scale

API Meetup BCN, Nov. 2015 Andrzej Jarzyna

now available with JAWS

API Meetup BCN, Nov. 2015 Andrzej Jarzyna

Demo

API Meetup BCN, Nov. 2015 Andrzej Jarzyna

Summary• Lambda is great for building serverless micro-services

• Amazon API Gateway creates a layer for routing to Lambda and adds a security layer

• JAWS makes it easy to manage

API Meetup BCN, Nov. 2015 Andrzej Jarzyna

Learn more about the benefits of the 3scale API Management integration with the Amazon API Gateway and Lambda:http://www.3scale.net/amazon-gateway-integration/

API Meetup BCN, Nov. 2015 Andrzej Jarzyna

Check out some links• JAWS on GitHub:

https://github.com/jaws-framework/JAWS• How to create AWSM modules:

https://github.com/awsm-org/awsm• 3scale integration tutorial with Lambda and

Amazon API Gateway:https://support.3scale.net/get-started/quickstarts/aws-lambda-amazon-api-gateway