
RubyKaigi Teaser: Ruby on the Edge
Are you interested in lightweight web development on the edge? Platforms like Cloudflare Workers and Fastly Compute have been gaining tremendous popularity. However, edge development in Ruby still faces significant challenges. One of the biggest issues, I believe, is file size. ruby.wasm is an incredible piece of work, but since it packs a fully-featured Ruby into Wasm, the generated artifact is simply too large for edge use cases. Do you really need that much overhead just to do "a little something"? My new framework, Uzumibi (a Japanese name, like "Hono" — it means live embers buried under ash ), breaks through that wall. Here's a very basic example of Uzumibi code: class App < Uzumibi :: Router get "/" do | req , res | res . status_code = 200 res . headers = { "content-type" => "text/plain" , "x-powered-by" => " #{ RUBY_ENGINE } #{ RUBY_VERSION } " } res . body = "It works! \n " res end end $APP = App . new The Evolution of mruby/edge Let me give you a bit of background. At RubyKaig
Continue reading on Dev.to
Opens in a new tab


