Aug 12, 2015
+ сравнение API движков + ускоряем рельсы + организовываем код + документация + тесты, factory girl, fixtures + фоновые задачи
ContentsСодержание
Решения для разработки APIRAILS::API+ full stack
framework + requires rails
skills only - not so
lightweight
Решения для разработки APIRAILS::API GRAPE
+ API versioning + API doc gen - not a full stack
framework - requires expert
skills or integration with Rails
+ full stack framework
+ requires rails skills only
- not so lightweight
Решения для разработки APIRAILS::API GRAPE
+ lightweight - not a full stack
framework - requires
expert skills
SINATRA+ API versioning + API doc gen - not a full stack
framework - requires expert
skills or integration with Rails
+ full stack framework
+ requires rails skills only
- not so lightweight
+ отключить неиспользуемые subframeworks + отключить все middleware кроме router
GRAPE + RAILSУскоряем рельсы
> rake middleware
> rake middlewareuse Rack::Sendfile use ActionDispatch::Static use Rack::Lock use #<ActiveSupport::Cache::Strategy::LocalCache::Middleware:0x007fa9944b2a90> use Rack::Runtime use Rack::MethodOverride use ActionDispatch::RequestId use Rails::Rack::Logger use ActionDispatch::ShowExceptions use WebConsole::Middleware use ActionDispatch::DebugExceptions use BetterErrors::Middleware use ActionDispatch::RemoteIp use ActionDispatch::Reloader use ActionDispatch::Callbacks use ActiveRecord::Migration::CheckPending use ActiveRecord::ConnectionAdapters::ConnectionManagement use ActiveRecord::QueryCache use ActionDispatch::Cookies use ActionDispatch::Session::CookieStore use ActionDispatch::Flash use ActionDispatch::ParamsParser use Rack::Head use Rack::ConditionalGet use Rack::ETag
+ отключить неиспользуемые subframeworks + отключить все middleware кроме router + отключить cache_store
GRAPE + RAILSУскоряем рельсы
+ отключить неиспользуемые subframeworks + отключить все middleware кроме router + отключить cache_store + установить log_level = :error
GRAPE + RAILSУскоряем рельсы