How exciting!

So now, in the default branch, there's a mechanism for building
pluggable exchange types for extending the AMQP core direct, fanout,
topic and headers exchanges with custom functionality, like mikeb's
prototype LVC plugin, http://github.com/squaremo/rabbitmq-lvc-plugin.

I'm playing idly with shelling out to Spidermonkey, couchdb style, for a
"javascript" exchange. I'm looking forward to seeing what others come up
with!

(BTW, the AMQP spec requires that exchange type names start with "x-" if
they're not blessed by the standards committee, so my JS exchange will
probably be something like "x-javascript" or similar for now)

Tony

Search Discussions

  • Alexis Richardson at Mar 4, 2010 at 10:27 pm
    We need to tell more people about this! Our list is small and I hope
    perfectly formed, but this is a big step...

    a

    On Thu, Mar 4, 2010 at 10:22 PM, Tony Garnock-Jones wrote:
    How exciting!

    So now, in the default branch, there's a mechanism for building
    pluggable exchange types for extending the AMQP core direct, fanout,
    topic and headers exchanges with custom functionality, like mikeb's
    prototype LVC plugin, http://github.com/squaremo/rabbitmq-lvc-plugin.

    I'm playing idly with shelling out to Spidermonkey, couchdb style, for a
    "javascript" exchange. I'm looking forward to seeing what others come up
    with!

    (BTW, the AMQP spec requires that exchange type names start with "x-" if
    they're not blessed by the standards committee, so my JS exchange will
    probably be something like "x-javascript" or similar for now)

    Tony

    _______________________________________________
    rabbitmq-discuss mailing list
    rabbitmq-discuss at lists.rabbitmq.com
    http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
  • Edup_pt at Oct 8, 2012 at 4:49 pm
    Hi,


    Great Post. For which i understand you talk about an exchange in client
    javascript side, right?


    What i pretend to do is to have an exchange inside the same network,
    meaning, if i have a main application in html/javascript i would like that
    all others client browser's (in the same network) connects directly to this
    main html/javascript exchange (that is in the internal network).


    This exchange in client side will connect to other exchange that is in the
    rabbitmq server for cases that the users are not in the same network.


    Im looking for this exchanges in client side for (java, html/javascript and
    other languages)


    Any ideia that can help me?


    Thanks a lot.






    --
    View this message in context: http://rabbitmq.1065348.n5.nabble.com/Pluggable-exchange-types-bug-22169-landed-on-default-tp14982p22415.html
    Sent from the RabbitMQ mailing list archive at Nabble.com.
  • Tim Watson at Oct 22, 2012 at 10:34 am
    Hi


    On 8 Oct 2012, at 17:49, edup_pt wrote:

    Hi,

    Great Post. For which i understand you talk about an exchange in client
    javascript side, right?

    I don't think that's what Tony was saying actually. A custom exchange (type) would have to be implemented in Erlang, it's just that Tony points out you can break out of the Erlang emulator into something else (like spidermonkey) if you *really* want to.

    What i pretend to do is to have an exchange inside the same network,
    meaning, if i have a main application in html/javascript i would like that
    all others client browser's (in the same network) connects directly to this
    main html/javascript exchange (that is in the internal network).

    This exchange in client side will connect to other exchange that is in the
    rabbitmq server for cases that the users are not in the same network.

    It's an interesting idea, but this is not what pluggable exchange types are about I'm afriad.

    Im looking for this exchanges in client side for (java, html/javascript and
    other languages)

    Any ideia that can help me?

    Well from the sounds of things, what you'd *really* like is an AMQP node running in the browser. That's a very interesting idea, but not something that is likely to come 'out of the box' anywhere AFAIK. I'd suggest doing a bit more research into things like web-stomp first of all, to see if the messaging patterns you want to implement between (presumably browser based) clients can be achieved simply using something like that. But it's worth baring in mind that AMQP is a broker oriented protocol - certainly 0.9.1 is anyway - and so a broker-less model (where clients speak to one another directly) is not something you'll be able to glue together using the protocol.


    It's probably also worth baring in mind that native AMQP isn't likely to run directly inside a browser any time soon, so you should really consider alternatives to get from the browser (clients) to a broker, and then think about smart integration patterns that would allow your clients to behave *as if* they were peers, despite the intermediary role of the broker in the network.


    Cheers,

    Thanks a lot.



    --
    View this message in context: http://rabbitmq.1065348.n5.nabble.com/Pluggable-exchange-types-bug-22169-landed-on-default-tp14982p22415.html
    Sent from the RabbitMQ mailing list archive at Nabble.com.
    _______________________________________________
    rabbitmq-discuss mailing list
    rabbitmq-discuss at lists.rabbitmq.com
    https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
  • Tim Watson at Oct 22, 2012 at 10:35 am
    On this note, you might also want to take a look at https://github.com/tonyg/rabbithub for inspiring ideas.


    On 22 Oct 2012, at 11:34, Tim Watson wrote:

    Hi
    On 8 Oct 2012, at 17:49, edup_pt wrote:

    Hi,

    Great Post. For which i understand you talk about an exchange in client
    javascript side, right?
    I don't think that's what Tony was saying actually. A custom exchange (type) would have to be implemented in Erlang, it's just that Tony points out you can break out of the Erlang emulator into something else (like spidermonkey) if you *really* want to.
    What i pretend to do is to have an exchange inside the same network,
    meaning, if i have a main application in html/javascript i would like that
    all others client browser's (in the same network) connects directly to this
    main html/javascript exchange (that is in the internal network).

    This exchange in client side will connect to other exchange that is in the
    rabbitmq server for cases that the users are not in the same network.
    It's an interesting idea, but this is not what pluggable exchange types are about I'm afriad.
    Im looking for this exchanges in client side for (java, html/javascript and
    other languages)

    Any ideia that can help me?
    Well from the sounds of things, what you'd *really* like is an AMQP node running in the browser. That's a very interesting idea, but not something that is likely to come 'out of the box' anywhere AFAIK. I'd suggest doing a bit more research into things like web-stomp first of all, to see if the messaging patterns you want to implement between (presumably browser based) clients can be achieved simply using something like that. But it's worth baring in mind that AMQP is a broker oriented protocol - certainly 0.9.1 is anyway - and so a broker-less model (where clients speak to one another directly) is not something you'll be able to glue together using the protocol.

    It's probably also worth baring in mind that native AMQP isn't likely to run directly inside a browser any time soon, so you should really consider alternatives to get from the browser (clients) to a broker, and then think about smart integration patterns that would allow your clients to behave *as if* they were peers, despite the intermediary role of the broker in the network.

    Cheers,
    Thanks a lot.



    --
    View this message in context: http://rabbitmq.1065348.n5.nabble.com/Pluggable-exchange-types-bug-22169-landed-on-default-tp14982p22415.html
    Sent from the RabbitMQ mailing list archive at Nabble.com.
    _______________________________________________
    rabbitmq-discuss mailing list
    rabbitmq-discuss at lists.rabbitmq.com
    https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprabbitmq-discuss @
categoriesrabbitmq
postedMar 4, '10 at 10:22p
activeOct 22, '12 at 10:35a
posts5
users4
websiterabbitmq.com
irc#rabbitmq

People

Translate

site design / logo © 2022 Grokbase