Coder Social home page Coder Social logo

Comments (6)

chanskw avatar chanskw commented on June 8, 2024

In the old MQTT operators, we support a format parameter: bin / block.
Since we are now implementing operators in Java, we can no longer have a parameter that uses custom literals. In thinking about this more, I think we should avoid having "format" parameters in adapters in general. Format should be done externally in Parse / Format operators.

Therefore, I propose that we remove the "format" parameter from both of these operators and only support the "block" format. The adapters will always take a blob for MQTTSink and send out a blob for MQTTSource. If the user wants to use "bin" format, they can use the Parse and Format operators to achieve the same effect. I think most people have been using "block" format anyway since the operators are used for interfacing with external systems... does not really make sense to send out Streams binary format.

@mikespicer , @ddebrunner , @petenicholls - what do you think about this proposal?

from streamsx.messaging.

ddebrunner avatar ddebrunner commented on June 8, 2024

I think it makes sense to have formatting separate.

from streamsx.messaging.

mikespicer avatar mikespicer commented on June 8, 2024

I prefer separating the data transport from the data format with separate operators for parse/format which can be used in conjunction with source/sink to provide many combinations.

I realise that you are asking about the bin format which means the data format is the binary serialization of a stream tuple, and I think it makes sense to separate that out to be parse/format operators. I presume that different message formats like text or binary with XMS and JMS etc. need to be handled differently as it determines if the messaging system will read a message or not. Is that the case?

from streamsx.messaging.

chanskw avatar chanskw commented on June 8, 2024

@mikespicer Yes, that is correct, we will have to handle message format for Text / Binary for XMS and JMS differently. For XMS, I believe the message format is handled by XMS client. We need to look at how we are interfacing with the client. For JMS, the message formats are handled by the operator, which we will need to review and figure out if we want to or how to separate those out.

from streamsx.messaging.

mikespicer avatar mikespicer commented on June 8, 2024

OK good. On data format I completely agree that it should be handled using parse/format operators and not to have format parameters on the source/sink operators themselves. For message format we would handle it in the source/sink as its part of the configuration/parameters for interacting with messaging systems.

from streamsx.messaging.

chanskw avatar chanskw commented on June 8, 2024

Understood.... Will add this as part migration information about going from the product messaging toolkit to open-source messaging toolkit. Thanks!

from streamsx.messaging.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.