Lighting fast rails with zeus

619 views

Published on

Starting up rails is crazy slow! Sometimes I drag to use some tools
just because they startup rails and it takes like 30 sec.
It's bad, and it breaks flow. Zeus is here to change this by giving you a
fast way to run your rails environment.

Published in: Technology, Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
619
On SlideShare
0
From Embeds
0
Number of Embeds
126
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Lighting fast rails with zeus

  1. 1. Hi I am Phil!@sideshowcoder (github)@cospired (work)
  2. 2. Lightning fast rails withzeus
  3. 3. ...or more like
  4. 4. This is what we got...
  5. 5. This is what we want...** or faster!!!111elf!
  6. 6. Ruby 1.9
  7. 7. Ruby 2.0
  8. 8. So what is Zeus?
  9. 9. System for preforking andmanaging a Rails Env
  10. 10. FileMonitorkeep track of modifications to reload theenvironment as needed
  11. 11. SlaveMonitorKeep an environment ready for you at alltime
  12. 12. ClientRequest HandlerDispatch calls by the clients to slaves
  13. 13. Setting it all upgem zeus... I got it in my Gemfile
  14. 14. Recompile ruby?Actually I dont and its not been a problemso far...
  15. 15. ./bin/zeus initbinstubs are great, and make zeus faster
  16. 16. config.json
  17. 17. Its pretty hassle free... and works most of the time just fine
  18. 18. No zeus specific code inthe appor tests
  19. 19. What to not use it for...
  20. 20. Zeus wont make your DBdependent view tests fastand shouldnt because they should notdepend...
  21. 21. Zeus will make your railsdependent PORO testsfast... not sure if this is a good thing so!
  22. 22. So be carefull zeus canbe to good to be truesometimes
  23. 23. Slow tests are slowdont fix with duck-tape and staples...
  24. 24. What to use it for...
  25. 25. rake routes shouldnt take30sec or so...
  26. 26. rails runner ... as wellrun all rails commands in a sane amount oftime
  27. 27. Some issues...
  28. 28. Be ready to restart...because new files are not recognized
  29. 29. Vagrant shared foldersCIFS does not like sockets** currently discussion around that in the issues #287 #231
  30. 30. So overall...it works, there are a lot of valid usecases, ...and some not so valid
  31. 31. Questions?Thanks!
  32. 32. Ressources● http://robots.thoughtbot.com/post/40193452558/improving-rails-boot-time-with-zeus● https://github.com/burke/zeus/● https://github.com/sideshowcoder/zeus forconfigurable sock location● https://github.com/rails/commands● https://github.com/sporkrb/spork● https://github.com/jonleighton/spring

×