How to sneak clojure into your rails shop

HOWTO SNEAK CLOJURE
INTOYOUR RAILS SHOP
...and ImproveYour Rails Hosting Along the Way
ABOUT ME
• Joshua Ballanco
• Live in Ankara,Turkey
• Chief Scientist at Burnside Digital
• We do Clojure
IFTHIS WAS 2006...
HOWTO SNEAK RAILS INTO
YOUR JAVA SHOP
LEARN FROM RAILS
• Better to ask forgiveness than permission
• Use Clojure whenever it’s the best tool for the job
• ...and even when it’s just the right tool for the job
• Don’t be afraid to show off!
STEP 1: JRUBY
• Convince your Rails guys to use JRuby:
• Better tooling
• Better performance (in many cases)
• Java ecosystem
• Lots of hosting options
STEP 2:TORQUEBOX
• Stupid Simple Deployment: torquebox deploy && torquebox run
• JBoss strength and stability
• All the bells and whistles baked right in
• HornetQ for queueing, workers
• Infinispan for shared memory cache
• Quartz for scheduling
STEP 3: IMMUTANT OVERLAY
• Immutant isTorqueBox’s Clojure Counterpart (and so much more!)
• lein immutant install && lein immutant overlay
• Comes with: JBoss, Immutant,TorqueBox, and JRuby
• set some environment variables, then...
• torquebox deploy
• lein immutant run – Runs deployed Clojure and Ruby apps
STEP 4: OPENSHIFT
• From Red Hat
• Like Heroku, but open source (and you have ssh access)
• Deploy with a git push
• Use the ployglot-openshift-quickstart (http://github.com/)
• Deploy Ruby and Clojure based applications to the same instance
STEP 5: MAKE CLOJURE AND
RUBYTALK
• HornetQ +TorqueBox/Immutant messaging libraries
• Infinispan +TorqueBox/Immutant caching libraries
• Higher-level abstractions
(keep an eye on http://blogs.burnsidedigital.com)
STEP 6: SHOW OFF
• Once it’s working, tell everyone why its so great!
• Sends alerts and receives confirmation when an alert is read
• Manage users, groups, organizations, permissions, etc.
• Separation of concerns improves stability and scale
THANKYOU!
Joshua Ballanco
Burnside Digital
http://www.burnsidedigital.com
1 of 11

Recommended

Introducing Immutant by
Introducing Immutant Introducing Immutant
Introducing Immutant Jim Crossley
1.8K views80 slides
Immutant by
ImmutantImmutant
ImmutantNorman Richards
2K views37 slides
Devignition 2011 by
Devignition 2011Devignition 2011
Devignition 2011tobiascrawley
1.4K views58 slides
Crank Up Your Apps With TorqueBox by
Crank Up Your Apps With TorqueBoxCrank Up Your Apps With TorqueBox
Crank Up Your Apps With TorqueBoxJim Crossley
3.7K views110 slides
4 JVM Web Frameworks by
4 JVM Web Frameworks4 JVM Web Frameworks
4 JVM Web FrameworksJoe Kutner
686 views78 slides
3 years with Clojure by
3 years with Clojure3 years with Clojure
3 years with ClojureMichael Klishin
31.6K views196 slides

More Related Content

More from Joshua Ballanco

Community in Motion by
Community in MotionCommunity in Motion
Community in MotionJoshua Ballanco
1.4K views41 slides
RubyMotion: Under the Hood by
RubyMotion: Under the HoodRubyMotion: Under the Hood
RubyMotion: Under the HoodJoshua Ballanco
2K views65 slides
Getting Your Ruby EGOT by
Getting Your Ruby EGOTGetting Your Ruby EGOT
Getting Your Ruby EGOTJoshua Ballanco
821 views66 slides
A Tale of Two Rubies by
A Tale of Two RubiesA Tale of Two Rubies
A Tale of Two RubiesJoshua Ballanco
1.1K views51 slides
Debugging RubyMotion by
Debugging RubyMotionDebugging RubyMotion
Debugging RubyMotionJoshua Ballanco
1.4K views14 slides
There and Back Again by
There and Back AgainThere and Back Again
There and Back AgainJoshua Ballanco
993 views77 slides

More from Joshua Ballanco(9)

Recently uploaded

Migrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlue by
Migrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlueMigrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlue
Migrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlueShapeBlue
147 views20 slides
Webinar : Desperately Seeking Transformation - Part 2: Insights from leading... by
Webinar : Desperately Seeking Transformation - Part 2:  Insights from leading...Webinar : Desperately Seeking Transformation - Part 2:  Insights from leading...
Webinar : Desperately Seeking Transformation - Part 2: Insights from leading...The Digital Insurer
40 views52 slides
How to Re-use Old Hardware with CloudStack. Saving Money and the Environment ... by
How to Re-use Old Hardware with CloudStack. Saving Money and the Environment ...How to Re-use Old Hardware with CloudStack. Saving Money and the Environment ...
How to Re-use Old Hardware with CloudStack. Saving Money and the Environment ...ShapeBlue
97 views28 slides
Ransomware is Knocking your Door_Final.pdf by
Ransomware is Knocking your Door_Final.pdfRansomware is Knocking your Door_Final.pdf
Ransomware is Knocking your Door_Final.pdfSecurity Bootcamp
81 views46 slides
Automating a World-Class Technology Conference; Behind the Scenes of CiscoLive by
Automating a World-Class Technology Conference; Behind the Scenes of CiscoLiveAutomating a World-Class Technology Conference; Behind the Scenes of CiscoLive
Automating a World-Class Technology Conference; Behind the Scenes of CiscoLiveNetwork Automation Forum
49 views35 slides
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N... by
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...James Anderson
142 views32 slides

Recently uploaded(20)

Migrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlue by ShapeBlue
Migrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlueMigrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlue
Migrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlue
ShapeBlue147 views
Webinar : Desperately Seeking Transformation - Part 2: Insights from leading... by The Digital Insurer
Webinar : Desperately Seeking Transformation - Part 2:  Insights from leading...Webinar : Desperately Seeking Transformation - Part 2:  Insights from leading...
Webinar : Desperately Seeking Transformation - Part 2: Insights from leading...
How to Re-use Old Hardware with CloudStack. Saving Money and the Environment ... by ShapeBlue
How to Re-use Old Hardware with CloudStack. Saving Money and the Environment ...How to Re-use Old Hardware with CloudStack. Saving Money and the Environment ...
How to Re-use Old Hardware with CloudStack. Saving Money and the Environment ...
ShapeBlue97 views
Automating a World-Class Technology Conference; Behind the Scenes of CiscoLive by Network Automation Forum
Automating a World-Class Technology Conference; Behind the Scenes of CiscoLiveAutomating a World-Class Technology Conference; Behind the Scenes of CiscoLive
Automating a World-Class Technology Conference; Behind the Scenes of CiscoLive
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N... by James Anderson
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...
James Anderson142 views
Import Export Virtual Machine for KVM Hypervisor - Ayush Pandey - University ... by ShapeBlue
Import Export Virtual Machine for KVM Hypervisor - Ayush Pandey - University ...Import Export Virtual Machine for KVM Hypervisor - Ayush Pandey - University ...
Import Export Virtual Machine for KVM Hypervisor - Ayush Pandey - University ...
ShapeBlue48 views
2FA and OAuth2 in CloudStack - Andrija Panić - ShapeBlue by ShapeBlue
2FA and OAuth2 in CloudStack - Andrija Panić - ShapeBlue2FA and OAuth2 in CloudStack - Andrija Panić - ShapeBlue
2FA and OAuth2 in CloudStack - Andrija Panić - ShapeBlue
ShapeBlue75 views
DRBD Deep Dive - Philipp Reisner - LINBIT by ShapeBlue
DRBD Deep Dive - Philipp Reisner - LINBITDRBD Deep Dive - Philipp Reisner - LINBIT
DRBD Deep Dive - Philipp Reisner - LINBIT
ShapeBlue110 views
Business Analyst Series 2023 - Week 4 Session 7 by DianaGray10
Business Analyst Series 2023 -  Week 4 Session 7Business Analyst Series 2023 -  Week 4 Session 7
Business Analyst Series 2023 - Week 4 Session 7
DianaGray10110 views
DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti... by ShapeBlue
DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti...DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti...
DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti...
ShapeBlue69 views
Why and How CloudStack at weSystems - Stephan Bienek - weSystems by ShapeBlue
Why and How CloudStack at weSystems - Stephan Bienek - weSystemsWhy and How CloudStack at weSystems - Stephan Bienek - weSystems
Why and How CloudStack at weSystems - Stephan Bienek - weSystems
ShapeBlue172 views
Live Demo Showcase: Unveiling Dell PowerFlex’s IaaS Capabilities with Apache ... by ShapeBlue
Live Demo Showcase: Unveiling Dell PowerFlex’s IaaS Capabilities with Apache ...Live Demo Showcase: Unveiling Dell PowerFlex’s IaaS Capabilities with Apache ...
Live Demo Showcase: Unveiling Dell PowerFlex’s IaaS Capabilities with Apache ...
ShapeBlue52 views
Digital Personal Data Protection (DPDP) Practical Approach For CISOs by Priyanka Aash
Digital Personal Data Protection (DPDP) Practical Approach For CISOsDigital Personal Data Protection (DPDP) Practical Approach For CISOs
Digital Personal Data Protection (DPDP) Practical Approach For CISOs
Priyanka Aash103 views
Backroll, News and Demo - Pierre Charton, Matthias Dhellin, Ousmane Diarra - ... by ShapeBlue
Backroll, News and Demo - Pierre Charton, Matthias Dhellin, Ousmane Diarra - ...Backroll, News and Demo - Pierre Charton, Matthias Dhellin, Ousmane Diarra - ...
Backroll, News and Demo - Pierre Charton, Matthias Dhellin, Ousmane Diarra - ...
ShapeBlue121 views
TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f... by TrustArc
TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f...TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f...
TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f...
TrustArc130 views
CloudStack Object Storage - An Introduction - Vladimir Petrov - ShapeBlue by ShapeBlue
CloudStack Object Storage - An Introduction - Vladimir Petrov - ShapeBlueCloudStack Object Storage - An Introduction - Vladimir Petrov - ShapeBlue
CloudStack Object Storage - An Introduction - Vladimir Petrov - ShapeBlue
ShapeBlue63 views
Declarative Kubernetes Cluster Deployment with Cloudstack and Cluster API - O... by ShapeBlue
Declarative Kubernetes Cluster Deployment with Cloudstack and Cluster API - O...Declarative Kubernetes Cluster Deployment with Cloudstack and Cluster API - O...
Declarative Kubernetes Cluster Deployment with Cloudstack and Cluster API - O...
ShapeBlue59 views

How to sneak clojure into your rails shop

  • 1. HOWTO SNEAK CLOJURE INTOYOUR RAILS SHOP ...and ImproveYour Rails Hosting Along the Way
  • 2. ABOUT ME • Joshua Ballanco • Live in Ankara,Turkey • Chief Scientist at Burnside Digital • We do Clojure
  • 3. IFTHIS WAS 2006... HOWTO SNEAK RAILS INTO YOUR JAVA SHOP
  • 4. LEARN FROM RAILS • Better to ask forgiveness than permission • Use Clojure whenever it’s the best tool for the job • ...and even when it’s just the right tool for the job • Don’t be afraid to show off!
  • 5. STEP 1: JRUBY • Convince your Rails guys to use JRuby: • Better tooling • Better performance (in many cases) • Java ecosystem • Lots of hosting options
  • 6. STEP 2:TORQUEBOX • Stupid Simple Deployment: torquebox deploy && torquebox run • JBoss strength and stability • All the bells and whistles baked right in • HornetQ for queueing, workers • Infinispan for shared memory cache • Quartz for scheduling
  • 7. STEP 3: IMMUTANT OVERLAY • Immutant isTorqueBox’s Clojure Counterpart (and so much more!) • lein immutant install && lein immutant overlay • Comes with: JBoss, Immutant,TorqueBox, and JRuby • set some environment variables, then... • torquebox deploy • lein immutant run – Runs deployed Clojure and Ruby apps
  • 8. STEP 4: OPENSHIFT • From Red Hat • Like Heroku, but open source (and you have ssh access) • Deploy with a git push • Use the ployglot-openshift-quickstart (http://github.com/) • Deploy Ruby and Clojure based applications to the same instance
  • 9. STEP 5: MAKE CLOJURE AND RUBYTALK • HornetQ +TorqueBox/Immutant messaging libraries • Infinispan +TorqueBox/Immutant caching libraries • Higher-level abstractions (keep an eye on http://blogs.burnsidedigital.com)
  • 10. STEP 6: SHOW OFF • Once it’s working, tell everyone why its so great! • Sends alerts and receives confirmation when an alert is read • Manage users, groups, organizations, permissions, etc. • Separation of concerns improves stability and scale