SlideShare una empresa de Scribd logo
1 de 11
Descargar para leer sin conexión
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

Más contenido relacionado

Más de Joshua Ballanco

Más de Joshua Ballanco (9)

Community in Motion
Community in MotionCommunity in Motion
Community in Motion
 
RubyMotion: Under the Hood
RubyMotion: Under the HoodRubyMotion: Under the Hood
RubyMotion: Under the Hood
 
Getting Your Ruby EGOT
Getting Your Ruby EGOTGetting Your Ruby EGOT
Getting Your Ruby EGOT
 
A Tale of Two Rubies
A Tale of Two RubiesA Tale of Two Rubies
A Tale of Two Rubies
 
Debugging RubyMotion
Debugging RubyMotionDebugging RubyMotion
Debugging RubyMotion
 
There and Back Again
There and Back AgainThere and Back Again
There and Back Again
 
MacRuby for Fun and Profit
MacRuby for Fun and ProfitMacRuby for Fun and Profit
MacRuby for Fun and Profit
 
Keeping ruby reasonable
Keeping ruby reasonableKeeping ruby reasonable
Keeping ruby reasonable
 
MacRuby: What is it? and why should you care?
MacRuby: What is it? and why should you care?MacRuby: What is it? and why should you care?
MacRuby: What is it? and why should you care?
 

Último

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 

Último (20)

Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 

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