Hi, Unfortunately the Akka ZeroMQExtension doesn't expose the XPUB/XSUB socket types, since the zeromq scala bindings that it uses doesn't expose them. If you only want to proxy things, then maybe you can use the jzmq java bindings directly?
B/ On 31 March 2014 at 19:29:19, OD ([email protected]) wrote: Hello, I have spent a day or so trying to figure out where the XPUB/XSUB stuff and the poll capability are in the zeromq bindings or in akka ZeroMQExtension. However I am not having any luck. In zeroMQ and other language bindings you can do things like: ctx = zmq.Context.instance() frontend = ctx.socket(zmq.SUB) frontend.bind("tcp://*:5557") backend = ctx.socket(zmq.XPUB) backend.bind("tcp://*:5558") # Subscribe to every single topic from publisher frontend.setsockopt(zmq.SUBSCRIBE, b"") # Store last instance of each topic in a cache cache = {} # We route topic updates from frontend to backend, and # we handle subscriptions by sending whatever we cached, # if anything: poller = zmq.Poller() poller.register(frontend, zmq.POLLIN) poller.register(backend, zmq.POLLIN) # so on and so on Then you can proxy things between the frontend and the backend. How does one go about doing this in Scala/Akka? Thanks! OD -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout. -- Björn Antonsson Typesafe – Reactive Apps on the JVM twitter: @bantonsson JOIN US. REGISTER TODAY! Scala Days June 16th-18th, Berlin -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
