Discard
Sequent
Discard | Sequent | |
---|---|---|
5 | 5 | |
2,031 | 535 | |
- | 0.2% | |
6.0 | 8.8 | |
3 months ago | 27 days ago | |
Ruby | Ruby | |
MIT License | MIT License |
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.
Discard
-
Don’t allow associations on discarded records
Hello there! I am using the Discard gem. I basically want new records associated to them to be invalid.
- Accessing point in time data when data changes over time
-
What are the gems that every Ruby dev should know how to use?
discard - a soft-delete implementation that avoids a lot of the gotchas associated with paranoia or acts_as_paranoid gem.
-
Rails application boilerplate for fast MVP development
add discard
-
Looking For Gem Recommendations For Alternatives
indeed discard offers better performance options than paranoia: https://github.com/jhawthorn/discard#working-with-associations
Sequent
-
OOP vs. services for organizing business logic: is there a third way?
Sequent – CQRS and event sourcing
-
Event Store with Rails
Co-author of the Sequent gem (https://www.sequent.io) here. Can confirm that it’s a great gem to build event sourced applications with (as long as you’re using PostgreSQL). It’s very battle tested as it has been extracted from/used in a web based accounting system that currently holds about 1 billion events in the event store.
- Accessing point in time data when data changes over time
-
Using CQRS in a simple Phoenix API with Commanded
I have been curious about the concepts of event sourcing and CQRS for a while— obsessively reading books like Practical Microservices (Garofolo) and Architecture Patterns with Python (Percival, Gregory), along with documentation for libraries like Sequent (Ruby), Commanded (Elixir).
What are some alternatives?
Paranoia - acts_as_paranoid for Rails 5, 6 and 7
Rails Event Store - A Ruby implementation of an Event Store based on Active Record
PaperTrail - Track changes to your rails models
SimpleCommand - A simple, standardized way to build and use Service Objects (aka Commands) in Ruby
ActsAsParanoid - ActiveRecord plugin allowing you to hide and restore records without actually deleting them.
Cells - View components for Ruby and Rails.
arel-helpers - Useful tools to help construct database queries with ActiveRecord and Arel.
Clowne - A flexible gem for cloning models
ActiveRecordExtended - Adds additional postgres functionality to an ActiveRecord / Rails application
Trailblazer - The advanced business logic framework for Ruby.
Destroyed At - ActiveRecord Mixin for Safe Destroys
Responders - A set of Rails responders to dry up your application