node.js - extending the programmability of apigee edge

32
Node.js Extending the Programmability of Apigee Edge Apigee @apigee Greg Brail @gbrail Scott Ganyo @theganyo

Upload: apigee

Post on 28-Jan-2015

111 views

Category:

Technology


1 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Node.js - Extending the Programmability of Apigee Edge

Node.jsExtending the Programmability of Apigee Edge

Apigee@apigee

Greg Brail@gbrail

Scott Ganyo@theganyo

Page 2: Node.js - Extending the Programmability of Apigee Edge

@gbrailGreg Brail

@theganyoScott Ganyo

Page 3: Node.js - Extending the Programmability of Apigee Edge

youtube.com/apigee

Page 4: Node.js - Extending the Programmability of Apigee Edge

slideshare.net/apigee

Page 5: Node.js - Extending the Programmability of Apigee Edge

community.apigee.com

Page 6: Node.js - Extending the Programmability of Apigee Edge

Introduction to the stack

Building a simple API (demo)

Deploying in Edge

Adding API features using Volos (demo)

Overview

Page 7: Node.js - Extending the Programmability of Apigee Edge

Introduction to the Stack

Page 8: Node.js - Extending the Programmability of Apigee Edge

API Middleware

Volos

Web App and API framework

Argo

Express

Others

Node.js Stack

Page 9: Node.js - Extending the Programmability of Apigee Edge

Server-side platform for JavaScript

Support for HTTP(s)

Scalable and fast

Huge third-party community

#1 language on GitHub

6,742 modules/year for last four

Node.js

Page 10: Node.js - Extending the Programmability of Apigee Edge

A Framework

Describe how to handle URIs

Designed for APIs

Flexible

Add “middleware” to requests and responses

Serve up content

Act as proxy

Argo

Page 11: Node.js - Extending the Programmability of Apigee Edge

Node.js modules for API management

OAuth

Quota

Cache

More to come

MIT License

Multiple back ends

Volos

Page 12: Node.js - Extending the Programmability of Apigee Edge

Deploy Node.js applications to Apigee

Directly from UI

From source code

Third party module support

Combine with other policies

Volos

Page 13: Node.js - Extending the Programmability of Apigee Edge

Demo:Building a Simple API

Page 14: Node.js - Extending the Programmability of Apigee Edge

“Hello World”

Page 15: Node.js - Extending the Programmability of Apigee Edge

“Hello World” with Policies

Page 16: Node.js - Extending the Programmability of Apigee Edge

Tracing Script Output

Page 17: Node.js - Extending the Programmability of Apigee Edge

Deploying from the Command Line

Install Apigee deployment tool. . .

Page 18: Node.js - Extending the Programmability of Apigee Edge

Deploying from the Command Line

-d: Directory where the app is kept-n: Name to create in Apigee-m: Name of the “main” script file to run-b: URI prefix for the app(NPM modules will be Uploaded along with your app.)

Page 19: Node.js - Extending the Programmability of Apigee Edge

Volos

Page 20: Node.js - Extending the Programmability of Apigee Edge

OAuth 2.0

Add OAuth 2.0 authorization support to any API

Redis and Apigee backends

Introduction to Volos

Page 21: Node.js - Extending the Programmability of Apigee Edge

Quota

Count API calls by time and by any identifier (API key, etc.)

In-memory, Redis, and Apigee backends

Introduction to Volos

Page 22: Node.js - Extending the Programmability of Apigee Edge

Cache

Cache arbitrary data

In-memory and Redis backends

Introduction to Volos

Page 23: Node.js - Extending the Programmability of Apigee Edge

On GitHub and NPM now

More to come

Concurrency management

More security features

Maybe even XML. . .

Introduction to Volos

Page 24: Node.js - Extending the Programmability of Apigee Edge

Demo:Volos App

Page 25: Node.js - Extending the Programmability of Apigee Edge

Volos API with OAuth

Page 26: Node.js - Extending the Programmability of Apigee Edge

Volos Configuration

Page 28: Node.js - Extending the Programmability of Apigee Edge

Voloshttps://github.com/apigee/volos

Apigee Node.js Sample Appshttps://github.com/apigee/node-samples

Apigee Platform Toolshttps://github.com/apigee/api-platform-tools

Resources

Page 29: Node.js - Extending the Programmability of Apigee Edge

Sampleshttps://github.com/apigee/node-samples/tree/master/node/hellohttps://github.com/apigee/node-samples/tree/master/node/mashuphttps://github.com/apigee/volos/tree/master/samples/webinar

Argo – API and proxy frameworkhttps://github.com/argo/argo

Trireme – Node.js runtime for Javahttps://github.com/apigee/trireme

More Resources

Page 30: Node.js - Extending the Programmability of Apigee Edge

Q&A

Page 31: Node.js - Extending the Programmability of Apigee Edge

community.apigee.com

Page 32: Node.js - Extending the Programmability of Apigee Edge

THANK YOUQuestions and ideas to:

@gbrail@theganyo

http://community.apigee.com