microservices in action: how to actually build them

20
Microservices in action: How to actually build them Andrzej Jarzyna, the API guy from 3scale ;)

Upload: 3scale

Post on 16-Apr-2017

1.578 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Microservices in action: How to actually build them

Microservices in action: How to actually build

themAndrzej Jarzyna, the API guy from 3scale ;)

Page 2: Microservices in action: How to actually build them

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

Page 3: Microservices in action: How to actually build them

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

Page 4: Microservices in action: How to actually build them

API Meetup BCN, Nov. 2015 Andrzej Jarzyna

Lambda costs

Page 5: Microservices in action: How to actually build them

API Meetup BCN, Nov. 2015 Andrzej Jarzyna

Amazon API Gateway

Page 6: Microservices in action: How to actually build them

Demo

Page 7: Microservices in action: How to actually build them

API Meetup BCN, Nov. 2015 Andrzej Jarzyna

Page 8: Microservices in action: How to actually build them

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

Page 9: Microservices in action: How to actually build them
Page 10: Microservices in action: How to actually build them

Demo

Page 11: Microservices in action: How to actually build them

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

Page 12: Microservices in action: How to actually build them

API Meetup BCN, Nov. 2015 Andrzej Jarzyna

Integration with 3scale

Page 13: Microservices in action: How to actually build them
Page 14: Microservices in action: How to actually build them

API Meetup BCN, Nov. 2015 Andrzej Jarzyna

now available with JAWS

Page 15: Microservices in action: How to actually build them

API Meetup BCN, Nov. 2015 Andrzej Jarzyna

Page 16: Microservices in action: How to actually build them

Demo

Page 17: Microservices in action: How to actually build them
Page 18: Microservices in action: How to actually build them

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

Page 19: Microservices in action: How to actually build them

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/

Page 20: Microservices in action: How to actually build them

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