Allow schema to be created at topic creation time #333
dwivedialok
started this conversation in
Ideas
Replies: 1 comment
-
@dwivedialok Topic and Schema are two different entities in klaw and for klaw governance, every request has to be properly reviewed and approved. We can review about this feature soon. If you like to contribute, pls let us know. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Creation of topic and associating a schema with it, is currently two step process in Klaw. You can't combine them into a single request. In my previous work, this was seen as an important requirement to ensure developers/architects think of what data they want in the new topic at the time when creating the topic. Proposal here is to associate schema with topic at the time of raising topic creation request. Topic creation requests would have an option to say if schema is needed or not. If the answer is yes then a schema file is provided at the same time. Once the request is approved both topic and schema subject are created at same time. This also allows us to ensures that when a topic is promoted to the next higher environment it will also create schema if the topic has an associated schema (subject name can be used to determine this assuming default TopicNameStrategy).
With this approach, one can’t end up in a situation where you only promote a topic to higher environment but not its associated schema (as that would be treated as an issue). In the current two step process of topics and schema treated as separate entities, due to human errors, one could end with disparity between environments for schemas.
Beta Was this translation helpful? Give feedback.
All reactions