triangle node meetup : apis in minutes with node.js

30
APIs in minutes with Node.js Shubhra Kar Director Products @shubhrakar Oct 2014

Upload: shubhra-kar

Post on 16-Jun-2015

433 views

Category:

Software


5 download

DESCRIPTION

Build Omni-channel APIs in minutes with Node.js. StrongLoop's Loopback API server provides an open source API framework for connecting mobile, devices, sensors and web to backends though lightweight APIs. Get Mobile Backend as a Service (mBaaS) and API Gateway plus a Visual API editor (Studio) all in a single modular Node.js platform. SDKs for Angular, iOS, Android and JavaScript makes Isomorphic JavaScript and fullstack JS a reality.

TRANSCRIPT

Page 1: Triangle Node Meetup :  APIs in Minutes with Node.js

APIs in minutes with Node.js

Shubhra KarDirector Products

@shubhrakar

Oct 2014

Page 2: Triangle Node Meetup :  APIs in Minutes with Node.js

The Frontend is changing fast (Mobile First !)

Page 3: Triangle Node Meetup :  APIs in Minutes with Node.js

And it isn’t done yet !

Page 4: Triangle Node Meetup :  APIs in Minutes with Node.js

4

APIs are powering this change

SaaS Mobile IoT

SOA

Web

App Server

Database Datacube

API Server

HTML JSON

Page 5: Triangle Node Meetup :  APIs in Minutes with Node.js

5

What tech is should I use for APIs ?

Node is FAST

Node is perfect for APIs

Node powers full-stack JS

…and highly concurrent!

Page 6: Triangle Node Meetup :  APIs in Minutes with Node.js

Hybrid App: Full Stack JavaScript!

AngularBootstrap

Ionic

Cordova

A Compelling Option for Enterprise Mobility Faster time to market vs. 100% native

development Reuse skills of existing web developer staff Open Source stack / no vendor lock-in For Enterprise apps, performance is comparable

to native apps Near “write once, run anywhere” UI: tablets,

phones, smart TVs, smart watches, cars, etc.

Gartner predicts by 2016 more than 50% of the apps deployed will be

Hybrid apps.

http://www.gartner.com/newsroom/id/2324917

LoopBackAPI ServerNode.js

Page 7: Triangle Node Meetup :  APIs in Minutes with Node.js

Why Node.js?

• Lots of JavaScript programmers out there (>62K)• Very large and active developer community• Has the most modules (100K > Java)

Page 8: Triangle Node Meetup :  APIs in Minutes with Node.js

Threads Don’t Wait !

Page 9: Triangle Node Meetup :  APIs in Minutes with Node.js

Nodies are not just silicon valley hipsters !

And most recently….

Page 10: Triangle Node Meetup :  APIs in Minutes with Node.js

But how do I cross the bridge…

RMI Objects

MessagingService

BI Tools

Business

Rules

FileSystem

ESB

WebInterfac

e

ContentDatabase

DataWarehous

e

FinancialsMainframe

Web/WAP

Interface

EJB

Virtual

Service

Routing

Service

SOAP

CRM App

Products

Collaboration

AppPortal

HelpEngine

BPMSLegacy

Infrastructure

Internal

External CloudPartners

<SOAP/XML/HTTP> <PSUEDO R

EST> <JSON API>

Mobile Backend

??

Page 11: Triangle Node Meetup :  APIs in Minutes with Node.js

11

Where Do We Begin?

We need a robust API tier!

It must automatically scale to meet our demands!

It must provide easy data integration and orchestration!

It must be designed for the Digital Revolution!

Page 12: Triangle Node Meetup :  APIs in Minutes with Node.js

1st Gen mBaaS - Parse, StackMob, Kinvey, Apigee, AppC, Kony

mobile/web clients

social & analytics

JSON APIREST API

APIXMLSQL

SOAPEtc.

mBaaS

API tier(Java, Ruby, PHP, C#)

MongoDB, mySQL

Enterprise

Page 13: Triangle Node Meetup :  APIs in Minutes with Node.js

APIs in Minutes with Node.js

Shubhra KarDirector – Products & Strategic Alliances

Oct 2014

Page 14: Triangle Node Meetup :  APIs in Minutes with Node.js

StrongLoop is the biggest contributor to Node Core

14

Page 15: Triangle Node Meetup :  APIs in Minutes with Node.js

15

StrongLoop helps deliver successful APIs

Compose

Deploy / Scale

Monitor

Secure / Manage

API Studio Controller StrongOps API Gateway

Developer Subscription Production Subscription

Reliable API Solutions powered by Node.js

Page 16: Triangle Node Meetup :  APIs in Minutes with Node.js

StrongLoop API Server components

ExpressAPI GatewayLoopback API FrameworkController (Mesh)Strong-agent – MonitoringConnectors to enterprise

systemsCommercial SupportTraining/Consulting

Page 17: Triangle Node Meetup :  APIs in Minutes with Node.js

RESTAPI

PUSH

GEOOFF

SYNC

DEVICE

USER FILE

Storage

REST

APIGATEWAY

Channel SDKs

ORMAPI ENGINE

CONNECTORs

API

SDKs

StrongLoop API Server (On-Premises or Cloud)

REST API

APIExplorer

Debugging, Provisioning, Scaling, Monitoring

Enterprise Node.js Platform

Page 18: Triangle Node Meetup :  APIs in Minutes with Node.js

Loopback Open-source Node.js Framework

$ slc loopback

_-----_ | | .--------------------------. |--(o)--| | Let's create a LoopBack | `---------´ | application! | ( _´U`_ ) '--------------------------' /___A___\ | ~ | __'.___.'__ ´ ` |° ´ Y `

[?] Enter a directory name where to create the project: (.)

Middleware API Engine

ORM

Aggregation & Mashups

API Explorer (Swagger)

Fine Grained Access Control (ACLs)

Data Replication

IsoMorphic JS and Client SDKs.

Page 19: Triangle Node Meetup :  APIs in Minutes with Node.js

API Explorer (Swagger 2.0) and Frontend App Integration

Page 20: Triangle Node Meetup :  APIs in Minutes with Node.js

Studio

Visual ORM

Discovery

Migration

DEV - API Design & Composition

OPS – Provisioning, Scaling & Monitoring

Page 21: Triangle Node Meetup :  APIs in Minutes with Node.js

mBaaS (mobile Backend as a Service)

Push Notification

GeoLocation

Offline Sync

3rd Party APIs

Device / User Tracking

Cloud / File Storage

Page 22: Triangle Node Meetup :  APIs in Minutes with Node.js

API Gateway

Security (AAA)

Mediation and Transformation

Infrastructure QoS (pagination, throttling, caching, delivery guarantee, firewall)

Analytics and health monitoring

Aggregation and Microservices Routing

Virtualization and Reverse Proxy

Page 23: Triangle Node Meetup :  APIs in Minutes with Node.js

Connectors

Connection Management

RDBMS, NoSQL, Services, BigData, Proprietary

Model Discovery

Data Replication

State Management

Storage

Open Source

Enterprise

Storage

REST

Page 24: Triangle Node Meetup :  APIs in Minutes with Node.js

Controller

Debugging

Build Universal Git

Deploy Server Distro Distributed – Mesh

Scale

State Management

Page 25: Triangle Node Meetup :  APIs in Minutes with Node.js

Monitoring

Deep Dive Node.js Metrics

Dynamic Instrumentation

On-Premises and 3rd Party Integration

Deep Transaction Tracing

Root Cause Analysis

Page 26: Triangle Node Meetup :  APIs in Minutes with Node.js

26

Monitoring – On Premises / 3rd Party consoles

Page 27: Triangle Node Meetup :  APIs in Minutes with Node.js

Profiling – On Premises

Page 28: Triangle Node Meetup :  APIs in Minutes with Node.js

28

Error tracking/recovery

Page 29: Triangle Node Meetup :  APIs in Minutes with Node.js

Let’s Start

API Serverhttp://strongloop.com/node-js/api-server/

Loopbackhttp://loopback.io

Expresshttp://expressjs.com/

mBaaShttp://strongloop.com/node-js/mBaaS/

Controllerhttp://strongloop.com/node-js/controller/

Monitoringhttp://strongloop.com/node-js/monitoring/

Studiohttp://strongloop.com/node-js/studio-beta/

Page 30: Triangle Node Meetup :  APIs in Minutes with Node.js

First there was NodeThank you!