Use nameko without a broker?

Hi guys,

Is it possible to use the nameko framework for RPC - without using a
broker? My services are already discoverable and load balanced with DNS and
I have a pubsub solution in place.

-Nick

Hi Nick,

In short, yes, but you may need to do a bit of work yourself.

The built-in nameko rpc are really amqp rpc. Since you mention being
broker-less i guess you have a different transport in mind, maybe http? You
can certainly use nameko and all the other things it provides (lifecycle
management, dependency injection, testing tools etc). If you are indeed
using http, there are some http support built in, but you may want to build
something additional on top (your own entrypoints and extensions) to handle
some of the boilerplate particular to your rpc protocols (for example, the
nameko `http` entrypoint passes a werkzeug request object to the service
method, but you could write an extension that parses a json payload and
passes in more structured data, a bit like the nameko rpc ones do for rpc

Best,
David

ยทยทยท

On Friday, 16 September 2016 01:34:19 UTC+1, nicholas...@seagate.com wrote:

Hi guys,

Is it possible to use the nameko framework for RPC - without using a
broker? My services are already discoverable and load balanced with DNS and
I have a pubsub solution in place.

-Nick