-
Notifications
You must be signed in to change notification settings - Fork 3
feat(all): initial commit for managedSchema #23
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
base: master
Are you sure you want to change the base?
Conversation
*Motivation* Managed schema is a `recordSpace` where the schema is directly handled by the record-store. This allow to offer a dedicated grpc service that you can use to shim something, or offer another type of dev experience. The first Managed schema is the KV, which offers a Key/Value experience. It has his own grpc service that will be easier to implement. Others may follow.
StevenLeRoux
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
few comments
docs/managed-schema.md
Outdated
|
|
||
| Record-Store is great to handle customers defined schema, but sometimes you may need to store something simple. | ||
|
|
||
| We are now providing dedicated `recordSpace` where the schema is directly handled by the Record-Store, lowering the difficulty to use the Record-Store. Under the hood, you will still open a `recordSpace`, but you will not be able to manipulate the schema. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove temporality (now). Would be better adopting a ligher style (we are providing => A recordSpace is a keyspace directly managed by... )
docs/managed-schema.md
Outdated
|
|
||
| ## Managed KeyValue | ||
|
|
||
| You want to use a simple key/value? We got you covered! We even offer a simplified gRPC service: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rework :)
| return getKeySpacePath(tenant, recordSpace, "unmanaged", "data"); | ||
| } | ||
|
|
||
| private static KeySpacePath getKeySpacePath(String tenant, String env, String recordSpaceType, String subDirectory) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't you prefer to use a constant enum or boolean instead of a string to characterize managed/unmanaged?
|
Resolved most of your comments @StevenLeRoux, a lot of files modified as I added a formatter with gradle. TODO: add a service to manage managedSchemas |
Motivation
Managed schema is a
recordSpacewhere the schema is directly handledby the record-store. This allow to offer a dedicated grpc service that
you can use to shim something, or offer another type of dev experience.
The first Managed schema is the KV, which offers a Key/Value experience.
It has his own grpc service that will be easier to implement. Others may
follow.