Giter Club home page Giter Club logo

Comments (8)

slinkydeveloper avatar slinkydeveloper commented on August 11, 2024 1

I prefer the 1 as first pass, we can always generalize with the option 2 later

from sdk-java.

Alfusainey avatar Alfusainey commented on August 11, 2024

@slinkydeveloper I want to work on this issue. can I give it a go?

from sdk-java.

slinkydeveloper avatar slinkydeveloper commented on August 11, 2024

Sure, go ahead. Which amqp client are you planning to use? Do you want to use apache qpid jproton?

from sdk-java.

Alfusainey avatar Alfusainey commented on August 11, 2024

I am planning to use the vertx-proton library to integrate amqp 1.0 with vertx. This library is a wrapper around qpid proton-j

<dependency>
    <groupId>io.vertx</groupId>
    <artifactId>vertx-proton</artifactId>
    <version>${vertx.version}</version>
</dependency>

I see that different components in the project uses a different vertx version. Is there a reason for this?

How about defining a maven property for the vertx version (i.e vertx.version) in the parent POM and have all modules use the version defined in the parent? This way, the new amqp module will not have to redefine its own vertx version

from sdk-java.

slinkydeveloper avatar slinkydeveloper commented on August 11, 2024

IMO we should integrate directly with jproton more than the vertx wrapper, because it might be useful for folks that needs amqp but doesn't want to use vertx.

I see that different components in the project uses a different vertx version. Is there a reason for this?

Which components? It's fine if the vertx we use in jaxrs integration tests doesn't match the one in vert.x integration module

from sdk-java.

Alfusainey avatar Alfusainey commented on August 11, 2024

IMO we should integrate directly with jproton more than the vertx wrapper, because it might be useful for folks that needs amqp but doesn't want to use vertx

ok 👍

Which components?

http/vertx uses 4.0.0.Beta1 while http/restful-ws uses 3.9.0

from sdk-java.

slinkydeveloper avatar slinkydeveloper commented on August 11, 2024

http/vertx uses 4.0.0.Beta1 while http/restful-ws uses 3.9.0

No issue then

from sdk-java.

Alfusainey avatar Alfusainey commented on August 11, 2024

@slinkydeveloper If i understand correctly, the amqp protocol binding spec does not mandate the AMQP section to store CE extensions.

CloudEvents extensions that define their own attributes MAY define a secondary mapping to AMQP properties for those attributes, also in different message sections, especially if specific attributes or their names need to align with AMQP features or with other specifications that have explicit AMQP header bindings

So the mapping can go either to the properties section of the message or to a different section chosen by the user. I am thinking of implementing this as follows:

  1. Map all extensions to the application-properties section of the message. In this case, all attributes and extensions maps to the same section of the message. I think this is what the sdk-go impl. is doing
  2. provide a callback that allows the user to consume all extensions. This will enable the user to determine which section of the message to store the extensions.

WDYT?

from sdk-java.

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.