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