Node.ACSAppcelerator Custom Cloud Services                   Wei Kong    Director of Engineering, Cloud Services          ...
AppceleratorCloud Services (ACS)as Instant MobileBackend
The Good           • Easy to use           • Cross Platform (REST Api based)           • Predefined object models         ...
What’s Missing                 • Custom Code                 • Web Hosting                 • Support of Custom URLs       ...
Introducing CustomCloud Services(Node.ACS)
Node.js + ACS                • Complete Solution to your                  Mobile Backend                • JavaScript for b...
Node.js in a Nutshell                        • Use JavaScript to write                          Web Servers               ...
Why Node.js              • Performance and Scalability              • Easy to Integrate Network                Components ...
Node.ACSArchitecture
ACS Network Layer                    ACS
The Development Flow                Create a app                 Test Locally Publish to Node.ACS Cloud            Unpubli...
Multiple Versions                    your app   Device    (v1)               V1   Device    (v2)               V2         ...
Demo andSample 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.l...
Websocket            A group chat app            based on websocket
Group ChatServer Codewebsocket.message = function(data, socket) {   socket.broadcast.emit(message, data);};Client Code// R...
Roadmap
What’s in Preview                    • One free Node.js Worker/app                    • 100M Free disk space/app          ...
Coming Soon              • Background job workers              • Node.js Monitoring              • More 3rd party services...
Wei Kong     @baobeimmwkong@appcelerator.com
Upcoming SlideShare
Loading in …5
×

Codestrong 2012 breakout session building your own custom cloud services

623 views
572 views

Published on

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
623
On SlideShare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
8
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide
  • 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
  • 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
  • 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) -----worker? revision slidesReal example (diagram)add a diagram about moving the logic away from client devices,
  • ----- Meeting Notes (10/11/12 14:13) -----diagram needs to be updated
  • 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 ?
  • 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.
  • Codestrong 2012 breakout session building your own custom cloud services

    1. 1. Node.ACSAppcelerator Custom Cloud Services Wei Kong Director of Engineering, Cloud Services Appcelerator Inc. @baobeimm wkong@appcelerator.com
    2. 2. AppceleratorCloud Services (ACS)as Instant MobileBackend
    3. 3. The Good • Easy to use • Cross Platform (REST Api based) • Predefined object models • Custom Objects and Fields • No Server Code Needed
    4. 4. What’s Missing • Custom Code • Web Hosting • Support of Custom URLs • Can have extra overhead with the network and battery consumption
    5. 5. Introducing CustomCloud Services(Node.ACS)
    6. 6. Node.js + ACS • Complete Solution to your Mobile Backend • JavaScript for both Client and Server • Fully Integrated with ACS JS
    7. 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. 8. Why Node.js • Performance and Scalability • Easy to Integrate Network Components • JavaScript
    9. 9. Node.ACSArchitecture
    10. 10. ACS Network Layer ACS
    11. 11. The Development Flow Create a app Test Locally Publish to Node.ACS Cloud Unpublish Set Custom Cname Ex. http://www.yourapp.com
    12. 12. Multiple Versions your app Device (v1) V1 Device (v2) V2 V3 Device (v3) Latest
    13. 13. Demo andSample Code
    14. 14. Web Server Sample web server to display your app data stored in ACS
    15. 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. 16. Websocket A group chat app based on websocket
    17. 17. Group ChatServer Codewebsocket.message = function(data, socket) { socket.broadcast.emit(message, data);};Client Code// Received a messageiosocket.on(message, function(message) { // Display the message});// User types a message$(#outgoingChatMessage).keypress(function(event) { iosocket.emit(message, $(#outgoingChatMessage).val());}
    18. 18. Roadmap
    19. 19. What’s in Preview • One free Node.js Worker/app • 100M Free disk space/app • Unlimited API calls
    20. 20. Coming Soon • Background job workers • Node.js Monitoring • More 3rd party services integrations • Web Console • Flexible free tier • Auto sleep and reactivation
    21. 21. Wei Kong @baobeimmwkong@appcelerator.com

    ×