Snails: Rails conventions, native performance
Snails is a Rails-like framework for API-only Ruby apps. It keeps the Rails conventions, drops the Ruby runtime, and compiles the app, the framework, and the HTTP server into one native binary. The trade-off: no Active Record or gem compatibility. Models are plain classes — no callbacks, scope chains, or joins — and queries use the Sqlx query API. What you get: about 3× the requests per second of Rails in cluster mode, with 10× lower peak memory under load.
Post a comment