Jorb v0.1.3 Jorb.Broker View Source

Jorb.Broker

Takes a batch of messages, decodes them, sends them off to their target, then deletes them.

Link to this section Summary

Functions

Process a batch of messages asynchronously. Called by Jorb.Fetcher

Link to this section Functions

Process a batch of messages asynchronously. Called by Jorb.Fetcher.

The body of the SQS message will contain a “target” key whose value is the module that will have its’ perform function called. Funny enough, it’s the same module that called perform_async provided by Jorb.Job.

A batch of messages is however many SQS hands us back in one request, so, up to 10.

It’s fine that we don’t ask for acknowledgement here, since we’re completely tolerant of failures. If a message (or batch, even) gets dropped, they’ll be requeued once their visibility timeout passes.