01 / 04
Standalone Rack: the lean path
For pure-API services, skip Rails. A Grape app on Puma is a ~120 MB container that boots in under 300 ms — ideal for Cloud Run, Fargate or Container Apps.
ruby# config.ru require "grape" class API < Grape::API format :json version "v1", using: :path resource :ping do get { { pong: Time.now.utc.iso8601 } } end end run API