Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Minigun is a lightweight framework for rapid-fire batch job processing using a Producer-Accumulator-Consumer pattern. Minigun uses forking and threads to maximize system resource utilization.
In many use cases, Minigun can replace queue systems like Resque, Solid Queue, or Sidekiq. Minigun itself is run entire in Ruby's memory, and is database and application agnostic.
Here is a trivial proof-of-concept--Minigun can do a lot more than this!
require 'minigun'
class NewsletterSender
include Minigun::Runner
max_threads 10
max_consumer_forks 5
def initialize(start_time: Time.now - 1.day)
@start_time = start_time
end
producer do
# fix this
User.where("created_at >= ?", @start_time)
.not.where()
.each do |user|
produce(user)
end
end
consumer do |user|
NewsletterMailer.my_newsletter(user).deliver_now
user.update(newsletter_sent_at: Time.now)
end
end
# Run the Minigun job
NewsletterSender.new.go_brrr!
Use cases for Minigun include:
- Send a large number of emails to users in a target audience.
## Installation
```cmd
gem install minigun
Alex Nicholson for the original idea for Minigun.
FAQs
Unknown package
We found that minigun demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.