kredis VS Puma

Compare kredis vs Puma and see what are their differences.

kredis

Higher-level data structures built on Redis (by rails)

Puma

A Ruby/Rack web server built for parallelism (by puma)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
kredis Puma
20 40
1,355 7,577
1.0% 0.3%
7.2 8.7
19 days ago 7 days ago
Ruby Ruby
MIT License BSD 3-clause "New" or "Revised" License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

kredis

Posts with mentions or reviews of kredis. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-09.
  • Mastering Kredis in Ruby: Your Essential Guide
    1 project | dev.to | 9 Apr 2024
    This is where Kredis, a Redis client for Ruby, comes into play, offering a powerful and efficient caching solution.
  • solder VS kredis - a user suggested alternative
    2 projects | 9 May 2023
  • Could not detect rake tasks
    6 projects | /r/rails | 3 May 2023
    # Use the Puma web server [https://github.com/puma/puma] gem "puma", "~> 5.0" # Build JSON APIs with ease [https://github.com/rails/jbuilder] # gem "jbuilder" gem 'rack-cors' gem "devise" gem "jsonapi-serializer" gem 'devise-jwt' gem 'active_model_serializers' gem 'followability' gem 'dotenv-rails', groups: [:development, :test, :production] gem 'sprockets' # Use Redis adapter to run Action Cable in production # gem "redis", "~> 4.0" # Use Kredis to get higher-level data types in Redis [https://github.com/rails/kredis] # gem "kredis" # Use Active Model has_secure_password [https://guides.rubyonrails.org/active_model_basics.html#securepassword] # gem "bcrypt", "~> 3.1.7" # Windows does not include zoneinfo files, so bundle the tzinfo-data gem gem "tzinfo-data", platforms: %i[ mingw mswin x64_mingw jruby ] # Reduces boot times through caching; required in config/boot.rb gem "bootsnap", require: false # Use Active Storage variants [https://guides.rubyonrails.org/active_storage_overview.html#transforming-images] # gem "image_processing", "~> 1.2" # Use Rack CORS for handling Cross-Origin Resource Sharing (CORS), making cross-origin AJAX possible # gem "rack-cors" group :development, :test do # See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem gem "debug", platforms: %i[ mri mingw x64_mingw ] end group :development do gem "sqlite3", "~> 1.4" # Speed up commands on slow machines / big apps [https://github.com/rails/spring] # gem "spring" end group :production do gem 'pg' end
  • Getting Started Upstash Redis with Rails
    2 projects | dev.to | 30 Dec 2022
    Now the connection is complete, back to our use case where we want to save the onboarded status for each user. We will use kredis in this case to make our life easier by connecting redis database to the application model. Open the user model app/models/user.rb and then add the kredis_boolean attribute because the type we need is a boolean.
  • How to create middleware in your Rails application
    3 projects | dev.to | 27 Jul 2022
    In rate_limited? the method request_counter is called which brings us to the part where Kredis is used. We use Kredis to initialize a counter in Redis. Kredis 'instantiates' the value from Redis. In other words, when you call Kredis.counter("mykey") we have an object that points to a Redis value under mykey. On that object we can call #increment which increments the current value in Redis. As you can see we check if the Redis key exists so that we can decide to use the call with expires_in. Each time you call #counter with expires_in, the expire timer resets. We don't want that because then the key will never expire. Checkout the Kredis docs for more information about Kredis.
  • Using Turbo Streams with Kredis
    3 projects | dev.to | 23 Jul 2022
    Let's anwser those questions by making a simple live counter with Turbo Streams and Kredis.
  • Storing a hash in Redis SET
    1 project | /r/rails | 14 Apr 2022
    Would Kredis be helpful?
  • Toggling views with Kredis and Turbo Frames
    2 projects | /r/rails | 11 Mar 2022
    Didn't know about `kredis_hash` I didn't look too hard at the gem when it was announced. Looks like there's more too, how convenient: https://github.com/rails/kredis/blob/main/lib/kredis/attributes.rb
  • Toggling view layouts with Kredis, Turbo Frames, and Rails
    4 projects | dev.to | 7 Mar 2022
    Kredis is a new gem that makes it easier to work with Redis keys in Ruby on Rails. Kredis was added a suggested gem for new Rails applications starting with the release of Rails 7.0 in December of 2021 and is likely to become a larger force in the Rails world in the coming years.
  • Displaying large amounts of temporary data
    1 project | /r/rails | 5 Mar 2022
    kredis readme

Puma

Posts with mentions or reviews of Puma. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-02-21.
  • Breaking the 300 barrier
    3 projects | dev.to | 21 Feb 2024
    As we use Puma as our webserver for our rails application, I quickly went to Puma's config file which typically resides in config/puma.rb. The config was set as
  • Would you consider Rails as stable nowadays ?
    2 projects | /r/rails | 8 Dec 2023
    They do! It's in the first section of the readme on the repo:
  • Hosting Rails App on AWS
    2 projects | /r/rails | 27 Jun 2023
    Start with service with systemd
  • Recommended way to implement Puma plugin configuration
    1 project | /r/ruby | 2 Jun 2023
  • Could not detect rake tasks
    6 projects | /r/rails | 3 May 2023
    # Use the Puma web server [https://github.com/puma/puma] gem "puma", "~> 5.0" # Build JSON APIs with ease [https://github.com/rails/jbuilder] # gem "jbuilder" gem 'rack-cors' gem "devise" gem "jsonapi-serializer" gem 'devise-jwt' gem 'active_model_serializers' gem 'followability' gem 'dotenv-rails', groups: [:development, :test, :production] gem 'sprockets' # Use Redis adapter to run Action Cable in production # gem "redis", "~> 4.0" # Use Kredis to get higher-level data types in Redis [https://github.com/rails/kredis] # gem "kredis" # Use Active Model has_secure_password [https://guides.rubyonrails.org/active_model_basics.html#securepassword] # gem "bcrypt", "~> 3.1.7" # Windows does not include zoneinfo files, so bundle the tzinfo-data gem gem "tzinfo-data", platforms: %i[ mingw mswin x64_mingw jruby ] # Reduces boot times through caching; required in config/boot.rb gem "bootsnap", require: false # Use Active Storage variants [https://guides.rubyonrails.org/active_storage_overview.html#transforming-images] # gem "image_processing", "~> 1.2" # Use Rack CORS for handling Cross-Origin Resource Sharing (CORS), making cross-origin AJAX possible # gem "rack-cors" group :development, :test do # See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem gem "debug", platforms: %i[ mri mingw x64_mingw ] end group :development do gem "sqlite3", "~> 1.4" # Speed up commands on slow machines / big apps [https://github.com/rails/spring] # gem "spring" end group :production do gem 'pg' end
  • Dusting off my rails knowledge, need some tips / guidance on rails 7 and production
    10 projects | /r/rails | 7 Apr 2023
    source "https://rubygems.org" git_source(:github) { |repo| "https://github.com/#{repo}.git" } ruby "3.1.0" # Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main" gem "rails", "~> 7.0.4", ">= 7.0.4.2" # The original asset pipeline for Rails [https://github.com/rails/sprockets-rails] gem "sprockets-rails" # Use sqlite3 as the database for Active Record gem "sqlite3", "~> 1.4" # Use the Puma web server [https://github.com/puma/puma] gem "puma", "~> 5.0" # Use JavaScript with ESM import maps [https://github.com/rails/importmap-rails] gem "importmap-rails" # Hotwire's SPA-like page accelerator [https://turbo.hotwired.dev] gem "turbo-rails" # Hotwire's modest JavaScript framework [https://stimulus.hotwired.dev] gem "stimulus-rails" # Build JSON APIs with ease [https://github.com/rails/jbuilder] gem "jbuilder" gem "mongoid" gem "mongoid-grid_fs" gem 'bootstrap', '~> 5.2.2' #sourced from https://github.com/twbs/bootstrap-rubygem gem 'rack-cors' # Windows does not include zoneinfo files, so bundle the tzinfo-data gem gem "tzinfo-data", platforms: %i[ mingw mswin x64_mingw jruby ] # Reduces boot times through caching; required in config/boot.rb gem "bootsnap", require: false
  • Write your own Domain Specific Language in Ruby
    2 projects | dev.to | 6 Feb 2023
    That doesn't mean one excludes the other. Gems like Puma use the instance_eval method for their configuration file.
  • Welcome to Puma 6: Sunflower
    1 project | /r/hypeurls | 22 Oct 2022
    1 project | news.ycombinator.com | 22 Oct 2022
  • puma 6.0 released
    2 projects | /r/ruby | 21 Oct 2022
    Anyway I did it: https://github.com/puma/puma/issues/3003 It's quite more complicated: https://github.com/puma/puma/issues/2999 A fix is in progress: https://github.com/puma/puma/pull/3002

What are some alternatives?

When comparing kredis and Puma you can also consider the following projects:

Redis - Redis is an in-memory database that persists on disk. The data model is key-value, but many different kind of values are supported: Strings, Lists, Sets, Sorted Sets, Hashes, Streams, HyperLogLogs, Bitmaps.

Thin - A very fast & simple Ruby web server

Ruby on Rails - Ruby on Rails

falcon - A high-performance web server for Ruby, supporting HTTP/1, HTTP/2 and TLS.

redis-namespace - This gem adds a Redis::Namespace class which can be used to namespace Redis keys.

Phusion Passenger - A fast and robust web server and application server for Ruby, Python and Node.js

turbo-rails - Use Turbo in your Ruby on Rails app

Iodine - iodine - HTTP / WebSockets Server for Ruby with Pub/Sub support

Sidekiq - Simple, efficient background processing for Ruby

Goliath - Goliath is a non-blocking Ruby web server framework

Redis-Objects - Map Redis types directly to Ruby objects

Unicorn - Unofficial Unicorn Mirror.