Replies: 1 comment 8 replies
-
@derberg good question 😄 Just to expand a bit on the article. From the perspective of a tool developer if we do With the intent API we have removed the confusion offering clear functions where you do not need to know about the specification and its problems. We have your application (application A) that needs to publish to the channel From the perspective of tooling, we offer the abstractions from the spec through If we try to map this directly to an AsyncAPI document, we can see that many of the functions access the same data. I.e. for channels that an application publishes over you have Did that clarify why we suggested what we did, also in terms of your questions? 🤔 Do you see any way to improve the implicit understanding of the API? 🤔 |
Beta Was this translation helpful? Give feedback.
-
While I love the idea of focusing on intent instead of AsyncAPI spec structure, I'm confused by the API because of function names. Do names need to sound like an intent? for me intent means that "I can do with API what I intend to do, do not have to learn the spec, just need to know the basic elements (channels, messages, etc) and do not need to know where are they in the specification, I mean where in the structure".
Why? because sometimes you can express the same intent using different words, why not just having standard names like
getMessages
with different options passed as arguments?For example:
clientSubscribableMessages
mentioned in @smoya article.I immediately ask myself:
while I could have:
getMessages
, and I could dogetMessages(operationName)
didn't you try to fix the spec confusion around pub sub semantics with the API?
Beta Was this translation helpful? Give feedback.
All reactions