Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manage queue types across environments #33

Open
stevenscg opened this issue Feb 8, 2016 · 2 comments
Open

Manage queue types across environments #33

stevenscg opened this issue Feb 8, 2016 · 2 comments

Comments

@stevenscg
Copy link

This is just a general question regarding the project's view of how queue types should be managed across (or between) various deployment environments.

I've noticed that some queue abstraction libraries allow producers and consumers to operate against a "well-known" queue by name (or similar) independent of the underlying adapter.

For example, this allows producers and consumers to operate against a simple database table "queue" in a developer or CI environment while using SQS in the fully-deployed scenario.

I'm not sure that is possible or even a good idea, but it is a pattern that seems to exist.

Thoughts? Recommendations?

@sjparkinson
Copy link
Contributor

@h-bragg got any input here?

I personally think it'd add unnecessary complexity to the library, and enable something that a decent framework would handle anyway with environment based configuration and a service container.

@h-bragg
Copy link
Contributor

h-bragg commented Feb 9, 2016

I agree that it would add complexity to the library. But could be something to consider in the future; I see https://github.com/eventio/bbq main interface is a layer above the queue, so you can access and push to multiple queues with a single class.

The first thing I can think of, with limiting any environment checks in code, would be to have an QueueAdapterFactory that supports queue name resolution like: s3:queue_name. This should probably sit in your code base as it would require the s3 client/others, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants