Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Migrating from Monolithic Rails
by Danielius Visockas
Twitter: @DVisockas
v1
Let’s look at Rails
Desktop only
Extractions of patterns
History of Rails
Let’s fast forward 10 years
Why Rails is nice:
● Routing
● Models (!)
● Persistence (migrations, schema)
● Sessions, cookies management
● Mailers
● Ot...
Story actually starts here
We had 2 apps
Main Rails app and Sinatra for the API
In the main app we used plain Rails
views and jQuery for the magic
Frontend magic
548 view files 84 javascript files
some files that would make sense
Late extraction costs more than early abstraction
Especially in frontend
&&
Your friends
Next thing: build an API
That’s where Ruby is the best tool
Ruby API building tools
An opinionated micro-framework for creating REST-like APIs in Ruby.
http://intridea.github.io/grape
● Specifically for bui...
Other cool features of moving to
Grape
● Support from the community
● You already have models
● Documentation
● Easy integ...
From evolution to revolution
● Small steps
● Reduced server load
● Easier to add other (micro-)services
● Easier scaling
●...
Try it after 2 days
Thank you!
Please ask questions
Vilnius Ruby community
Speakers
THANK YOU
Our stage is OPEN & everyone
is welcomed to share
Next meetup: April 9th
March 21st
Konstitucijos pr. 20A
Free!*
www.rubyconf.lt
*- registration required
Ruby +
Sponsors
Afterparty!
Šnekutis, Šv. Mikalojaus g.15
Migrating from monolithic rails
Migrating from monolithic rails
Migrating from monolithic rails
Upcoming SlideShare
Loading in …5
×
Upcoming SlideShare
Proceso de paz (1)
Next
Download to read offline and view in fullscreen.

1

Share

Download to read offline

Migrating from monolithic rails

Download to read offline

Related Books

Free with a 30 day trial from Scribd

See all

Related Audiobooks

Free with a 30 day trial from Scribd

See all

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
  • giedriusrim

    Mar. 15, 2015

Views

Total views

300

On Slideshare

0

From embeds

0

Number of embeds

4

Actions

Downloads

6

Shares

0

Comments

0

Likes

1

×