Diese Präsentation wurde erfolgreich gemeldet.
Wir verwenden Ihre LinkedIn Profilangaben und Informationen zu Ihren Aktivitäten, um Anzeigen zu personalisieren und Ihnen relevantere Inhalte anzuzeigen. Sie können Ihre Anzeigeneinstellungen jederzeit ändern.

Migrating from monolithic rails

  • Loggen Sie sich ein, um Kommentare anzuzeigen.

Migrating from monolithic rails

  1. 1. Migrating from Monolithic Rails by Danielius Visockas Twitter: @DVisockas v1
  2. 2. Let’s look at Rails
  3. 3. Desktop only Extractions of patterns History of Rails
  4. 4. Let’s fast forward 10 years
  5. 5. Why Rails is nice: ● Routing ● Models (!) ● Persistence (migrations, schema) ● Sessions, cookies management ● Mailers ● Other stuff (rake tasks, assets pipeline, etc)
  6. 6. Story actually starts here
  7. 7. We had 2 apps Main Rails app and Sinatra for the API
  8. 8. In the main app we used plain Rails views and jQuery for the magic
  9. 9. Frontend magic 548 view files 84 javascript files some files that would make sense
  10. 10. Late extraction costs more than early abstraction Especially in frontend
  11. 11. && Your friends
  12. 12. Next thing: build an API That’s where Ruby is the best tool
  13. 13. Ruby API building tools
  14. 14. An opinionated micro-framework for creating REST-like APIs in Ruby. http://intridea.github.io/grape ● Specifically for building API’s ● Minimal ● Fast (Grape: 2227 req/sec vs RailsAPI: 1111.42 req/sec) on 1.9.3
  15. 15. Other cool features of moving to Grape ● Support from the community ● You already have models ● Documentation ● Easy integration into Rails
  16. 16. From evolution to revolution ● Small steps ● Reduced server load ● Easier to add other (micro-)services ● Easier scaling ● You can concentrate on one side of the app
  17. 17. Try it after 2 days
  18. 18. Thank you! Please ask questions
  19. 19. Vilnius Ruby community
  20. 20. Speakers THANK YOU Our stage is OPEN & everyone is welcomed to share Next meetup: April 9th
  21. 21. March 21st Konstitucijos pr. 20A Free!* www.rubyconf.lt *- registration required
  22. 22. Ruby +
  23. 23. Sponsors
  24. 24. Afterparty! Šnekutis, Šv. Mikalojaus g.15

×