Using a simple Ruby program to interface with quickly provisioned cloud application services

936 views

Published on

Golden Colorado Ruby User's Group Presentation by Charlie Ozinga- Senior Engineer Cloud Elements

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Using a simple Ruby program to interface with quickly provisioned cloud application services

  1. 1. Building Cloud Applications Faster Cloud Elements Using a simple Ruby program to interface with quickly provisioned application services. Charlie Ozinga charlie@cloud-elements.com
  2. 2. Why Cloud Applications? ● Scalable ● Robust ● Manageable ● Easy Component Binding ● Cheaper (TCO)
  3. 3. Database Binding (Cloud Foundry example) $ cf create-service mysql $ cf bind-service --app my-app --service mysql Manual config/database.yml: <% mysql_dbs = JSON.parse(ENV['VCAP_SERVICES'])["mysql-5.1"] credentials = mysql_dbs.first["credentials"] %> production: adapter: mysql2 encoding: utf8 reconnect: false pool: 5 host: <%= credentials["host"] %> username: <%= credentials["username"] %> password: <%= credentials["password"] %> database: <%= credentials["database"] %> port: <%= credentials["port"] %> Automatic gem 'cf-autoconfig', :require => 'cfautoconfig'
  4. 4. What about internet services?
  5. 5. Cloud Elements! Can provision services interactively Provides all services as a simple REST API
  6. 6. The Result
  7. 7. Why Cloud Elements vs. DIY ● Skip the integration hassle that everyone goes through ● Consistent REST API that can be easily programmed to ● Language-specific client libraries forthcoming ● Easy management with logging, stats, and automatic failover ● Service-to-service integration
  8. 8. See it in action ...
  9. 9. Coming Soon ... require "cloudelements" message = CloudElements::Message.new( sender, recipient, subject, message ) response = message.send
  10. 10. That's It! Questions?
  11. 11. We're Hiring! Kristie Hunziker - HR/Recruiter - Cloud Elements T: 720.939.5819 | www.cloud-elements.com 1062 Delaware St., Denver, CO 80204 http://cloud-elements.com/careers/

×