Shrine
dragonfly
Our great sponsors
Shrine | dragonfly | |
---|---|---|
7 | 49 | |
3,142 | 23,696 | |
0.4% | 5.8% | |
5.7 | 9.9 | |
18 days ago | 4 days ago | |
Ruby | C++ | |
MIT License | BSL 1.1 |
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.
Shrine
-
[Poll] How do you handle file attachments in your Rails app in 2023?
Shrine is great, has more features and a simpler API (imo) than ActiveStorage https://shrinerb.com
-
I've done a mistake when I've chosen ActiveStorage (Rails 7. Start Kit, Release 1.7)
Don't you know `carrierwave` and `shrine` work already with this secure way to name folders/files? - https://github.com/carrierwaveuploader/carrierwave - https://github.com/shrinerb/shrine
-
A First Look at Hanami 2 for Ruby
In general, even though the Hanami ecosystem lacks any "plug-and-play" solutions such as Devise, you can use many existing libraries not tightly coupled to Ruby on Rails. For authentication, you can use Warden, OmniAuth or Rodauth. For uploads there is Shrine. The pagination is built into ROM. Integration with exception catchers such as Rollbar is easy.
- If you use shrine, lock net-protocol to < 0.2.0 for now
-
Image Uploading with Shrine
Once I knew I wanted to upload images I stated to look around for different ways to do so. I came across a gem named shrine which can be found here https://shrinerb.com/. This is were the hard part came in. Aside from installing the gem like normal, there was a second step that needed to be done to allow images to be rendered. I needed to install https://imagemagick.org/index.php ImageMagick onto my system. After this I was able to add images.
-
is it possible to convert a json string into a StringIO or other file-like object?
A [file field submission](https://github.com/shrinerb/shrine/wiki/Adding-Direct-S3-Uploads) (without Dashboard/Webcam) takes hidden_field :image, value: @photo.cached_image_data and a file_field :image selection in the form, then does this in console when saved:
-
Shrine Photo Uploader – Galeria de Fotos
Toolkit: Shrine
dragonfly
-
Redict is an independent, copyleft fork of Redis
https://github.com/dragonflydb/dragonfly is another option. Not a fork but API-compatible reimplementation.
- Redis License Changed
-
Scaling Real-Time Leaderboards with Dragonfly
Our journey will involve leveraging the capabilities of Dragonfly, a highly efficient drop-in replacement for Redis, known for its ultra-high throughput and multi-threaded share-nothing architecture. Specifically, we'll be utilizing two of Dragonfly's data types: Sorted-Set and Hash. These data structures are perfect for handling real-time data and ranking systems, making them ideal for our leaderboards.
-
Announcing Dragonfly Search
2023 has been a year with remarkable advancements in AI capabilities, and at Dragonfly, we are thrilled to power new use cases with our latest release: Dragonfly Search. This new feature set, debuting in Dragonfly v1.13, is a subset of RediSearch-compatible commands implemented natively in Dragonfly, allowing for both vector search and faceted search use cases in the highly scalable and performant Dragonfly in-memory data store.
- Dragonfly v1.10.0
-
Dragonfly Cache Design
If you have not heard about Dragonfly - please check it out. It uses - what I hope - novel and interesting ideas backed up by the research from recent years [1] and [2]. It's meant to fix many problems that exist with Redis today. I have been working on Dragonfly for the last 7 months and it has been one of the more interesting and challenging projects I've ever done!
-
Generating Income from Open Source
I recently ran across the the license for Dragonfly [1] which has some restrictions (rights reserved), but 5 years after the license date the license switches to Apache 2.0. Basically a timed-limited rights reservation. I don't hate it. I might even contribute to such a project for free.
I would consider something like this: When I release code, it's rights reserved for 5 years, then open-source (and this baked into an irrevocable license). Anyone may use the software for non-commercial purposes. Anyone may contribute, those who contribute will be granted permission for commercial use if I deem their contributions significant enough. Anyone may distribute the software under these terms.
If such a model became popular, I have a hard time imagining it could make things any worse. It might even accelerate open-source development. You might say, "but it's not open-source", fair enough, but we can view it as open-source contribution with a delay. For example, if this model became wildely popular this year, and we saw great progress with this model, then come 2028 we would be flooded with new open-source software and ultimately might be better off than it would have been without this model.
(And this whole thing makes me rethink copyright and patents and how much they really contribute to society. Perhaps they should be shortened?)
[1]: https://github.com/dragonflydb/dragonfly/blob/main/LICENSE.m...
- dragonflydb/dragonfly: A modern replacement for Redis and Memcached
-
Redis HA on k8s without Sentinel?
Maybe check out https://www.dragonflydb.io/ It claims to have a full redis implementation.
- Dragonfly is about 10x slower than Redis
What are some alternatives?
CarrierWave - Classier solution for file uploads for Rails, Sinatra and other Ruby web frameworks
KeyDB - A Multithreaded Fork of Redis
PaperClip - Easy file attachment management for ActiveRecord
skytable - Skytable is a modern scalable NoSQL database with BlueQL, designed for performance, scalability and flexibility. Skytable gives you spaces, models, data types, complex collections and more to build powerful experiences
Refile - Ruby file uploads, take 3
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.
DragonFly - A Ruby gem for on-the-fly processing - suitable for image uploading in Rails, Sinatra and much more!
Memcached - memcached development tree
rack-secure-upload - Upload files securely
Aerospike - Aerospike Database Server – flash-optimized, in-memory, nosql database
attache - Yet another approach to file upload
glommio - Glommio is a thread-per-core crate that makes writing highly parallel asynchronous applications in a thread-per-core architecture easier for rustaceans.