triangle node meetup : apis in minutes with node.js
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
APIs in minutes with Node.js
Shubhra KarDirector Products
@shubhrakar
Oct 2014
The Frontend is changing fast (Mobile First !)
And it isn’t done yet !
4
APIs are powering this change
SaaS Mobile IoT
SOA
Web
App Server
Database Datacube
API Server
HTML JSON
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!
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
Why Node.js?
• Lots of JavaScript programmers out there (>62K)• Very large and active developer community• Has the most modules (100K > Java)
Threads Don’t Wait !
Nodies are not just silicon valley hipsters !
And most recently….
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
??
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!
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
APIs in Minutes with Node.js
Shubhra KarDirector – Products & Strategic Alliances
Oct 2014
StrongLoop is the biggest contributor to Node Core
14
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
StrongLoop API Server components
ExpressAPI GatewayLoopback API FrameworkController (Mesh)Strong-agent – MonitoringConnectors to enterprise
systemsCommercial SupportTraining/Consulting
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
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.
API Explorer (Swagger 2.0) and Frontend App Integration
Studio
Visual ORM
Discovery
Migration
DEV - API Design & Composition
OPS – Provisioning, Scaling & Monitoring
mBaaS (mobile Backend as a Service)
Push Notification
GeoLocation
Offline Sync
3rd Party APIs
Device / User Tracking
Cloud / File Storage
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
Connectors
Connection Management
RDBMS, NoSQL, Services, BigData, Proprietary
Model Discovery
Data Replication
State Management
Storage
Open Source
Enterprise
Storage
REST
Controller
Debugging
Build Universal Git
Deploy Server Distro Distributed – Mesh
Scale
State Management
Monitoring
Deep Dive Node.js Metrics
Dynamic Instrumentation
On-Premises and 3rd Party Integration
Deep Transaction Tracing
Root Cause Analysis
26
Monitoring – On Premises / 3rd Party consoles
Profiling – On Premises
28
Error tracking/recovery
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/
First there was NodeThank you!