Skip to content

pubsub: support providers that don't do acks #1368

Closed
@ijt

Description

@ijt

NATS and Redis pubsub don't have acking, and it doesn't make sense to try to shoehorn them in by making message acks a no-op. That would mean the application code would be misleading.

To support pubsub providers without acks, I propose to add the following new types:

pubsub.FAFSubscription, whose Receive method returns a pubsub.FAFMessage
pubsub.FAFMessage that is mostly like a pubsub.Message but has no Ack method or associated bookkeeping

and corresponding interfaces within pubsub/driver. FAF here stands for "Fire and Forget".

Drivers would either implement driver.Subscription or driver.FAFSubscription, but probably not both.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions