Giter Club home page Giter Club logo

Comments (3)

davidszotten avatar davidszotten commented on July 23, 2024

Hi Yuri,

I don't know anything about mprpc, but the nameko http entrypoint is broker-less so you should be able to get some ideas there.

From a quick glance, mprpc is build on top of gevent, which might not play nicely with eventlet

from nameko.

mattbennett avatar mattbennett commented on July 23, 2024

The basic answer to this question is that it's possible to build a pair of nameko extensions to handle any kind of protocol. The built-in RPC implementation uses a (very simple) nameko-defined protocol on top of AMQP, but you could use any protocol on on transport.

You need an Entrypoint to handle incoming requests, and a client of some form to generate them. We don't really have docs on writing entrypoints, but you can study the nameko.web package for a simple example. It's built on werkzeug so what you find in that package is really the essence of an entrypoint.

I'm going to close this issue but please write to the mailing list if you decide to move forwards on this.

from nameko.

buriy avatar buriy commented on July 23, 2024

Hi @mattbennett @davidszotten ,
what you've provided is a server-side part example, which is trivial to produce,
but I haven't seen any client-side example -- for HTTP you used curl, and for any RPC you always use AMQP.
Do I need just to use my chosen library (mprpc) client implementation , but replace server-side @rpc with my own server decorator?
Am I right that I also need to implement all in rpc package by myself then?
So, how to make it reusable for another RPC protocol? Do you have any API docs but this https://nameko.readthedocs.io/en/stable/built_in_extensions.html#rpc ?
Or is it free from any API obligations?

from nameko.

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.