Ruby 比较轻量和高性能的 Ruby Web Framework 选择有哪些

escher · September 23, 2024 · Last by hentylee replied at October 08, 2024 · 1223 hits

需要写一个简单的 ruby api 服务(不用 rails),希望比较轻量和高效,目前能够使用的有哪些呢?除了 sinatra 还有什么其他选择

roda hanami 也可以看看

https://ruby-china.org/topics/41678 从上往下选就是轻量和高效的顺序

也可以用单文件 参考 https://github.com/tablecell/myrack

考虑到用途,易用性,维护活跃度,stars,roda 和 hanami 会好一些(应该

https://www.ruby-toolbox.com/categories/web_app_frameworks?display=full&order=github_repo_average_recent_committed_at

发现 sinatra 最好用,api 设计的很好

Roda 推荐,开发者比较靠谱。路由写法需要熟悉下,可以配合 sequel 性能强大。

Sinatra 和 rails 太像了,不如直接上 rails。

我觉得 2024 年竞争白热化,要么 Rails,要么 Next.js

You need to Sign in before reply, if you don't have an account, please Sign up first.