--
You received this message because you are subscribed to the Google Groups "Roda" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-roda+unsubscribe@googlegroups.com.
To post to this group, send email to ruby...@googlegroups.com.
Visit this group at https://groups.google.com/group/ruby-roda.
To view this discussion on the web visit https://groups.google.com/d/msgid/ruby-roda/3494e36b-48d9-45c0-91a0-4a6d311e74ba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi,I'm building a rest server for a React app for a client that expects peak traffic to reach around 15,000 users at 5-10 requests per minute.
Am I missing something here? Before I adopt Roda for a Rest API that I think will grow significantly in complexity and traffic, are there any scaling issues I should take seriously?
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-roda+...@googlegroups.com.
To post to this group, send email to ruby...@googlegroups.com.
Visit this group at https://groups.google.com/group/ruby-roda.
To view this discussion on the web visit https://groups.google.com/d/msgid/ruby-roda/CAGuHJrN2KiS-HD6TnogXCsJHmgtMc0zvEwsqQjc%2BjFEockd3Yg%40mail.gmail.com.
- Andrew
To view this discussion on the web visit https://groups.google.com/d/msgid/ruby-roda/CAGuHJrN2KiS-HD6TnogXCsJHmgtMc0zvEwsqQjc%2BjFEockd3Yg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Roda" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-roda+unsubscribe@googlegroups.com.
To post to this group, send email to ruby...@googlegroups.com.
Visit this group at https://groups.google.com/group/ruby-roda.
To view this discussion on the web visit https://groups.google.com/d/msgid/ruby-roda/2A7ACA76-4D81-4AFB-8B5D-FB26FBF3355A%40gmail.com.
You are right roda is just a router but if you are happy with the performance and functionality of Sinatra you'll probably be OK with Roda as Roda is supposedly faster than Sinatra.The biggest issue is smaller community and the fact that things you are used to getting bundled with Rails are not there so you'll have to implement them yourself if you need them. You might also miss some of the gems that work with rails but not roda.5 to 1-0 requests per minute is nothing. You should be able to handle that with anything.BTW Crystal also has Amber which is a larger more rails like framework. Also if you may want to look at elixir. I think on a requests per second basis it won't be faster than roda (especially if you use jruby) but it's more scalable in lots of other ways and has a very robust websockets support. One Issue I have is that it's virtually impossible to write a ruby web app (api or otherwise) which will not need some external processes to handle background tasks, scheduled tasks, etc so the memory requirement balloons up pretty fast. More often than not you will also need a cache of some sort and yes redis will be installed sooner or later. With something like elixir everything is built in to the language and the framework. No need to manage multiple processes or external memcache or redis servers.Good luck.
On Thu, Nov 23, 2017 at 11:44 AM, Eric Hulburd <er...@arbol.org> wrote:
Hi,I'm building a rest server for a React app for a client that expects peak traffic to reach around 15,000 users at 5-10 requests per minute.I've developed with both Sinatra and Rails in the past. I have also started some small projects in Golang, only to decide that I didn't like the package management and verbosity. I was thinking about giving Crystal Kemal a try, but I think it may still be too early for this particular project.I decided to to take a middle road and am considering Roda - the focus on performance and simplicity have a lot of appeal to me. However, I read a couple of blog posts where the authors suggest they primarily consider Roda for small projects:http://engineering.procore.com/roda-vs-sinatra-for-small-projects-2/I never quite understood this argument again Sinatra either. Sinatra and Roda both seem to be a router and nothing more. If you are building a complex Rest API, there are not significant drawbacks to keeping this layer very simple - complex business logic, ORM, etc can easily be encapsulated outside of this layer.Am I missing something here? Before I adopt Roda for a Rest API that I think will grow significantly in complexity and traffic, are there any scaling issues I should take seriously?Another related question, I noticed that New Relic does not support Roda out of the box. https://discuss.newrelic.com/t/ruby-agent-for-roda-framework/39323 It seems like Sinatra is definitely the more well known and used framework, so I'm wondering if anyone has encountered similar integration drawbacks to choosing Roda over Sinatra.Thanks,Eric
--
You received this message because you are subscribed to the Google Groups "Roda" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-roda+...@googlegroups.com.
- Andrew
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-roda+...@googlegroups.com.
To post to this group, send email to ruby...@googlegroups.com.
Visit this group at https://groups.google.com/group/ruby-roda.
To view this discussion on the web visit https://groups.google.com/d/msgid/ruby-roda/3494e36b-48d9-45c0-91a0-4a6d311e74ba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Roda" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-roda+unsubscribe@googlegroups.com.
To post to this group, send email to ruby...@googlegroups.com.
Visit this group at https://groups.google.com/group/ruby-roda.
To view this discussion on the web visit https://groups.google.com/d/msgid/ruby-roda/2b5cc79f-fe2a-4f3f-ad01-d40fdf62ac9d%40googlegroups.com.