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

Abstract SCB handling into standalone lib #115

Open
absurdfarce opened this issue Mar 14, 2023 · 0 comments
Open

Abstract SCB handling into standalone lib #115

absurdfarce opened this issue Mar 14, 2023 · 0 comments

Comments

@absurdfarce
Copy link
Collaborator

Consider pulling Astra SCB logic in cql-proxy into a free-standing library. This library could be managed and versioned separately from cql-proxy proper and could provide an API for the following functions:

  • SCB creation from various inputs (URLs, paths, possibly the raw materials that make up an SCB, etc.)
  • SCB interrogation
  • SCB comparison

Doing so would give us a single place for this logic to live; customers can then use it in whatever way suits them.

It would also allow us to decouple gocql-astra from cql-proxy. At the moment gocql-astra imports the SCB handling fns from cql-proxy to deal with SCBs. Importing the (much smaller) lib being discussed here would provide a clearer picture of the actual dependencies and avoid the weird condition of gocql-astra depending upon the whole of cql-proxy (when it really doesn't).

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

1 participant