WebAssembly / wasi-messaging

Messaging proposal for WASI
18 stars 9 forks source link

feat(*): Updates messaging to support request-reply #21

Closed thomastaylor312 closed 5 months ago

thomastaylor312 commented 8 months ago

This makes several updates to the messaging interface. Initially the README said that this wasn't going to support request/reply, but based on my reading of the Kafka, NATS, MQTT, and SQS APIs, this is a fairly common pattern. Another piece of evidence here is what I've seen as a wasmCloud maintainer from our users. Request/reply is one of the more common things we see with a messaging service. Please note that this doesn't require the use of a reply-to topic, just exposes it for use.

I also did a few other changes here. First is that I added the topic to the message. This was common across all systems and is often used by code to select the appropriate logic to perform. I also removed the format field as this didn't seem to be a common parameter across various services. We could definitely add a content-type member to this record in the future if needed, but I think much of that can be passed via the metadata field.

There are other things I might suggest some changes to, but I want to think on them some more and open some issues to discuss them first

thomastaylor312 commented 8 months ago

Also, I still have no idea what tool it is we use that updates all of the autogenerated HTML docs, so if someone could direct me with that, it would be great!

thomastaylor312 commented 5 months ago

Closing in favor of #23 which also incorporates some of the changes from here