SlideShare a Scribd company logo
Node.ACS
Appcelerator Custom Cloud Services

                   Wei Kong
    Director of Engineering, Cloud Services
                Appcelerator Inc.
                  @baobeimm

          wkong@appcelerator.com
Appcelerator
Cloud Services (ACS)
as Instant Mobile
Backend
The Good


           • Easy to use

           • Cross Platform (REST Api based)

           • Predefined object models

           • Custom Objects and Fields

           • No Server Code Needed
What’s Missing


                 • Custom Code

                 • Web Hosting

                 • Support of Custom URLs

                 • Can have extra overhead with
                   the network and battery
                   consumption
Introducing Custom
Cloud Services
(Node.ACS)
Node.js + ACS


                • Complete Solution to your
                  Mobile Backend

                • JavaScript for both Client
                  and Server

                • Fully Integrated with ACS

       JS
Node.js in a Nutshell


                        • Use JavaScript to write
                          Web Servers

                        • Based on Google’s V8 Engine

                        • Event-driven/None-blocking IO

                        • Lightweight and efficient

                        • More at http://nodejs.org
Why Node.js


              • Performance and Scalability

              • Easy to Integrate Network
                Components

              • JavaScript
Node.ACS
Architecture
ACS Network Layer




                    ACS
The Development Flow

                Create a app



                 Test Locally



 Publish to Node.ACS Cloud            Unpublish



              Set Custom Cname
         Ex. http://www.yourapp.com
Multiple Versions
                    your app


   Device
    (v1)               V1




   Device
    (v2)               V2


                       V3

   Device
    (v3)
                      Latest
Demo and
Sample Code
Web Server


             Sample web server to display your
             app data stored in ACS
What’s wrong?

var user = {
  session:"",
};
api.login = function(req, res) {
     if(user.session === ""){
          ACS.Users.login({login: req.body.un,password: req.body.pw},
                function(e) {
                if(e.success && e.success === true){
                      user.session = e.meta.session_id;
                }else{
                      res.redirect(version+'/index?msg='+e.message);
                }
           }, req, res);
     }else{
          res.redirect(version+'/show');
     }
}
Websocket


            A group chat app
            based on websocket
Group Chat

Server Code
websocket.message = function(data, socket) {
   socket.broadcast.emit('message', data);
};
Client Code
// Received a message
iosocket.on('message', function(message) {
     // Display the message
});

// User types a message
$('#outgoingChatMessage').keypress(function(event) {
    iosocket.emit('message', $('#outgoingChatMessage').val());
}
Roadmap
What’s in Preview


                    • One free Node.js Worker/app

                    • 100M Free disk space/app

                    • Unlimited API calls
Coming Soon


              • Background job workers

              • Node.js Monitoring

              • More 3rd party services
                integrations

              • Web Console

              • Flexible free tier

              • Auto sleep and reactivation
Wei Kong
     @baobeimm

wkong@appcelerator.com

More Related Content

What's hot (19)

PDF
Building Deploying and Managing Microservices-based Applications with Azure P...
CodeOps Technologies LLP
 
PDF
Como construir suas aplicações escaláveis sem servidores
Alexandre Santos
 
PPTX
Sherlock Homepage - A detective story about running large web services (VISUG...
Maarten Balliauw
 
PPTX
Azure functions
vivek p s
 
PPTX
A practical approach to provisioning resources in azure
Morten Christensen
 
PPTX
Vincent biret azure functions and flow (toronto)
Vincent Biret
 
PPTX
Vincent biret azure functions and flow (ottawa)
Vincent Biret
 
ODP
Scenejs
Lindsay Kay
 
PDF
Best Practices for couchDB developers on Microsoft Azure
Brian Benz
 
PDF
Shift Remote AI: Build and deploy PyTorch Models with Azure Machine Learning ...
Shift Conference
 
PPTX
App fabric hybrid computing
Hammad Rajjoub
 
PPTX
Microservices without servers
99X Technology
 
PPTX
Azure virtual machine-network
Thi Nguyen Dinh
 
PPTX
Serverless: The future of application delivery
Doug Vanderweide
 
PDF
SERVERLESS MIDDLEWARE IN AZURE FUNCTIONS
CodeOps Technologies LLP
 
PPTX
02 hosting servicesinwindowsazure
Bat Programmer
 
PDF
Going Serverless
dehms
 
PPTX
Microservices in Azure
Doug Vanderweide
 
PPTX
Serverless with Azure Functions
Andreas Willich
 
Building Deploying and Managing Microservices-based Applications with Azure P...
CodeOps Technologies LLP
 
Como construir suas aplicações escaláveis sem servidores
Alexandre Santos
 
Sherlock Homepage - A detective story about running large web services (VISUG...
Maarten Balliauw
 
Azure functions
vivek p s
 
A practical approach to provisioning resources in azure
Morten Christensen
 
Vincent biret azure functions and flow (toronto)
Vincent Biret
 
Vincent biret azure functions and flow (ottawa)
Vincent Biret
 
Scenejs
Lindsay Kay
 
Best Practices for couchDB developers on Microsoft Azure
Brian Benz
 
Shift Remote AI: Build and deploy PyTorch Models with Azure Machine Learning ...
Shift Conference
 
App fabric hybrid computing
Hammad Rajjoub
 
Microservices without servers
99X Technology
 
Azure virtual machine-network
Thi Nguyen Dinh
 
Serverless: The future of application delivery
Doug Vanderweide
 
SERVERLESS MIDDLEWARE IN AZURE FUNCTIONS
CodeOps Technologies LLP
 
02 hosting servicesinwindowsazure
Bat Programmer
 
Going Serverless
dehms
 
Microservices in Azure
Doug Vanderweide
 
Serverless with Azure Functions
Andreas Willich
 

Similar to Codestrong 2012 breakout session building your own custom cloud services (20)

PDF
NodeJS @ ACS
Mauro Parra-Miranda
 
KEY
20120306 dublin js
Richard Rodger
 
PDF
The Happy Path: Migration Strategies for Node.js
Nicholas Jansma
 
KEY
Writing robust Node.js applications
Tom Croucher
 
PDF
Developing realtime apps with Drupal and NodeJS
drupalcampest
 
PPTX
Node js - Yns
Alex Amistad
 
PPT
Node js
Chirag Parmar
 
KEY
20120802 timisoara
Richard Rodger
 
PPTX
Building and Scaling Node.js Applications
Ohad Kravchick
 
PDF
Node.js Introduction
Kentucky JavaScript Users Group
 
PDF
Building websites with Node.ACS
ralcocer
 
PDF
Building websites with Node.ACS
Ricardo Alcocer
 
PPTX
Building node.js applications on windows azure
Aidan Casey
 
PDF
JavaScript is the new black - Why Node.js is going to rock your world - Web 2...
Tom Croucher
 
PDF
Nodejs a-practical-introduction-oredev
Felix Geisendörfer
 
KEY
Node.js - The New, New Hotness
Daniel Shaw
 
PDF
Node.js - async for the rest of us.
Mike Brevoort
 
PDF
Node.js
Matt Simonis
 
KEY
20120514 nodejsdublin
Richard Rodger
 
KEY
Practical Use of MongoDB for Node.js
async_io
 
NodeJS @ ACS
Mauro Parra-Miranda
 
20120306 dublin js
Richard Rodger
 
The Happy Path: Migration Strategies for Node.js
Nicholas Jansma
 
Writing robust Node.js applications
Tom Croucher
 
Developing realtime apps with Drupal and NodeJS
drupalcampest
 
Node js - Yns
Alex Amistad
 
Node js
Chirag Parmar
 
20120802 timisoara
Richard Rodger
 
Building and Scaling Node.js Applications
Ohad Kravchick
 
Node.js Introduction
Kentucky JavaScript Users Group
 
Building websites with Node.ACS
ralcocer
 
Building websites with Node.ACS
Ricardo Alcocer
 
Building node.js applications on windows azure
Aidan Casey
 
JavaScript is the new black - Why Node.js is going to rock your world - Web 2...
Tom Croucher
 
Nodejs a-practical-introduction-oredev
Felix Geisendörfer
 
Node.js - The New, New Hotness
Daniel Shaw
 
Node.js - async for the rest of us.
Mike Brevoort
 
Node.js
Matt Simonis
 
20120514 nodejsdublin
Richard Rodger
 
Practical Use of MongoDB for Node.js
async_io
 
Ad

More from Axway Appcelerator (20)

PDF
Axway Appcelerator - Titanium SDK 6.1.0 - Status, Releases & Roadmap
Axway Appcelerator
 
PPTX
2014 Dublin Web Summit by Jeff Haynie
Axway Appcelerator
 
PPTX
Making the Mobile Mind Shift
Axway Appcelerator
 
PPTX
Stop Debating, Start Measuring
Axway Appcelerator
 
PPTX
Mobile & The New Experience Economy (And What it Means for IT)
Axway Appcelerator
 
PPTX
Apps, APIs & Analytics: What "Mobile First" Really Means
Axway Appcelerator
 
PPTX
Appcelerator Presentation Template
Axway Appcelerator
 
PPTX
Codestrong 2012 keynote jonathan rende, appcelerator's vp of products
Axway Appcelerator
 
PPTX
Codestrong 2012 keynote jeff haynie, appcelerator's ceo
Axway Appcelerator
 
PPTX
Codestrong 2012 keynote how to build a top ten app
Axway Appcelerator
 
PPTX
Codestrong 2012 breakout session at&t api platform and trends
Axway Appcelerator
 
PPTX
Codestrong 2012 breakout session what's new in titanium studio
Axway Appcelerator
 
PPTX
Codestrong 2012 breakout session using appcelerator cloud services in your ...
Axway Appcelerator
 
PPTX
Codestrong 2012 breakout session the role of cloud services in your next ge...
Axway Appcelerator
 
PPTX
Codestrong 2012 breakout session new device platform support for titanium
Axway Appcelerator
 
PPTX
Codestrong 2012 breakout session mobile platform and infrastructure
Axway Appcelerator
 
PPTX
Codestrong 2012 breakout session making money on appcelerator's marketplace
Axway Appcelerator
 
PDF
Codestrong 2012 breakout session live multi-platform testing
Axway Appcelerator
 
PPTX
Codestrong 2012 breakout session leveraging titanium as part of your mobile...
Axway Appcelerator
 
PPTX
Codestrong 2012 breakout session i os internals and best practices
Axway Appcelerator
 
Axway Appcelerator - Titanium SDK 6.1.0 - Status, Releases & Roadmap
Axway Appcelerator
 
2014 Dublin Web Summit by Jeff Haynie
Axway Appcelerator
 
Making the Mobile Mind Shift
Axway Appcelerator
 
Stop Debating, Start Measuring
Axway Appcelerator
 
Mobile & The New Experience Economy (And What it Means for IT)
Axway Appcelerator
 
Apps, APIs & Analytics: What "Mobile First" Really Means
Axway Appcelerator
 
Appcelerator Presentation Template
Axway Appcelerator
 
Codestrong 2012 keynote jonathan rende, appcelerator's vp of products
Axway Appcelerator
 
Codestrong 2012 keynote jeff haynie, appcelerator's ceo
Axway Appcelerator
 
Codestrong 2012 keynote how to build a top ten app
Axway Appcelerator
 
Codestrong 2012 breakout session at&t api platform and trends
Axway Appcelerator
 
Codestrong 2012 breakout session what's new in titanium studio
Axway Appcelerator
 
Codestrong 2012 breakout session using appcelerator cloud services in your ...
Axway Appcelerator
 
Codestrong 2012 breakout session the role of cloud services in your next ge...
Axway Appcelerator
 
Codestrong 2012 breakout session new device platform support for titanium
Axway Appcelerator
 
Codestrong 2012 breakout session mobile platform and infrastructure
Axway Appcelerator
 
Codestrong 2012 breakout session making money on appcelerator's marketplace
Axway Appcelerator
 
Codestrong 2012 breakout session live multi-platform testing
Axway Appcelerator
 
Codestrong 2012 breakout session leveraging titanium as part of your mobile...
Axway Appcelerator
 
Codestrong 2012 breakout session i os internals and best practices
Axway Appcelerator
 
Ad

Codestrong 2012 breakout session building your own custom cloud services

  • 1. Node.ACS Appcelerator Custom Cloud Services Wei Kong Director of Engineering, Cloud Services Appcelerator Inc. @baobeimm [email protected]
  • 2. Appcelerator Cloud Services (ACS) as Instant Mobile Backend
  • 3. The Good • Easy to use • Cross Platform (REST Api based) • Predefined object models • Custom Objects and Fields • No Server Code Needed
  • 4. What’s Missing • Custom Code • Web Hosting • Support of Custom URLs • Can have extra overhead with the network and battery consumption
  • 6. Node.js + ACS • Complete Solution to your Mobile Backend • JavaScript for both Client and Server • Fully Integrated with ACS JS
  • 7. Node.js in a Nutshell • Use JavaScript to write Web Servers • Based on Google’s V8 Engine • Event-driven/None-blocking IO • Lightweight and efficient • More at http://nodejs.org
  • 8. Why Node.js • Performance and Scalability • Easy to Integrate Network Components • JavaScript
  • 11. The Development Flow Create a app Test Locally Publish to Node.ACS Cloud Unpublish Set Custom Cname Ex. http://www.yourapp.com
  • 12. Multiple Versions your app Device (v1) V1 Device (v2) V2 V3 Device (v3) Latest
  • 14. Web Server Sample web server to display your app data stored in ACS
  • 15. What’s wrong? var user = { session:"", }; api.login = function(req, res) { if(user.session === ""){ ACS.Users.login({login: req.body.un,password: req.body.pw}, function(e) { if(e.success && e.success === true){ user.session = e.meta.session_id; }else{ res.redirect(version+'/index?msg='+e.message); } }, req, res); }else{ res.redirect(version+'/show'); } }
  • 16. Websocket A group chat app based on websocket
  • 17. Group Chat Server Code websocket.message = function(data, socket) { socket.broadcast.emit('message', data); }; Client Code // Received a message iosocket.on('message', function(message) { // Display the message }); // User types a message $('#outgoingChatMessage').keypress(function(event) { iosocket.emit('message', $('#outgoingChatMessage').val()); }
  • 19. What’s in Preview • One free Node.js Worker/app • 100M Free disk space/app • Unlimited API calls
  • 20. Coming Soon • Background job workers • Node.js Monitoring • More 3rd party services integrations • Web Console • Flexible free tier • Auto sleep and reactivation

Editor's Notes

  • #5: Extending ACS FeaturesWeb ServicesBackground Jobs (Coming soon)Integrations with third party services ACS currently doesn’t support yetMove custom logics from devices to ServerReduce devices network and battery consumptionsSimplify client side developmentReduce app footprintCustom URL 80% job done needs another 20%, background admin job, cms , also performance enhancement
  • #7: Extending ACS FeaturesWeb ServicesBackground Jobs (Coming soon)Integrations with third party services ACS currently doesn’t support yetMove custom logics from devices to ServerReduce devices network and battery consumptionsSimplify client side developmentReduce app footprintCustom URL ----- Meeting Notes (10/11/12 14:13) -----windows update node.ACS logosend it magic
  • #8: Extending ACS FeaturesWeb ServicesBackground Jobs (Coming soon)Integrations with third party services ACS currently doesn’t support yetMove custom logics from devices to ServerReduce devices network and battery consumptionsSimplify client side developmentReduce app footprintCustom URL
  • #11: ----- Meeting Notes (10/11/12 14:13) -----worker? revision slidesReal example (diagram)add a diagram about moving the logic away from client devices,
  • #13: ----- Meeting Notes (10/11/12 14:13) -----diagram needs to be updated
  • #20: Extending ACS FeaturesWeb ServicesBackground Jobs (Coming soon)Integrations with third party services ACS currently doesn’t support yetMove custom logics from devices to ServerReduce devices network and battery consumptionsSimplify client side developmentReduce app footprintCustom URL ----- Meeting Notes (10/11/12 14:13) -----deactivenumer of free workers ?
  • #21: Extending ACS FeaturesWeb ServicesBackground Jobs (Coming soon)Integrations with third party services ACS currently doesn’t support yetMove custom logics from devices to ServerReduce devices network and battery consumptionsSimplify client side developmentReduce app footprintCustom URL ----- Meeting Notes (10/11/12 14:13) -----enterpise connection services, such as SaP ,oracle, salesforce.