Warning
Deprecated. The Go package is superseded by
depot — the same object-storage data
exchange with a smaller, generics-based API (Produce / Subscribe). New Go
code should use depot; see its migration guide.
feedx is in maintenance mode and receives no new features. The Ruby library
below has no depot equivalent yet and remains here.
Feed-based data exchange between services.
require 'bfs/s3'
require 'feedx'
# Init a new producer with an S3 destination
relation = Post.includes(:author)
producer = Feedx::Producer.new relation, 's3://my-bucket/feeds/users.json.gz'
# Push a new feed every hour
loop do
producer.perform
sleep(3600)
end