I'm setting up the integration tests in Nameko wity pyTest . in my conftest.py I added the following fixture
@pytest.fixture
def test_config(rabbit_config, db_url):
with config.patch({'DB_URIS': {'service:Base': db_url}}):
yield
But I…
I'm invoking nameko shell inside my docker container of the example service, but I receive this error. I have setup two containers. My rabbitmq container and my service container. I'm invoking the nameko shell from inside the service container bash.…
Hi everyone,
First of all, I want to let you know that I am just beginning to learn about the python micro service library Nameko.
I am trying to create a simple micro service that add a user in Sqlite database using nameko-sqlalchemy extention.…
I've been reading through the nameko docs, and it is all good and clear, except for one part.
How do you actually deploy your nameko microservice?
I mean, it is clear how we deploy RESTful APIs in flask_restful, for instance. But with nameko?
If two…
If I have a vanilla Django REST (DRF) application and I would like to integrate a nameko service (specifically an event_handler event listening service), what's the best way to achieve this?
I cannot simply nameko run a service if it's part of a…
I have a nameko service that deals with lots of entities, and having the entrypoints in a single service.py module would render the module highly unreadable and harder to maintain.
So I've decided to split up the module in to multiple Services which…
In Nameko we can use Config dependency provider to read config from a yaml file:
class SampleService:
name = "sample"
config = Config()
@rpc
def get(self, user_id):
# I can access self.config here
return {'user_id':…
It seems json is the default way for serialization data in nameko rpc. If I call rpc.my_service.send(b'\x01\'), it will raise exception kombu.exceptions.EncodeError: Object of type 'bytes' is not JSON serializable
Is there a way to send binary data…
I see some examples about nameko RESTful microservice + swagger which can generate amazing interface document. However, in my case, I only use RPC rather than HTTP. Is there any swagger-like library for documenting RPC interface?
When trying the very basic example about the python framework nameko, I get an error like this one : BlockingIOError: [WinError 10035] A non-blocking socket operation could not be completed immediately
Any idea where it can come from ?
I am using…
I'm writing a small RPC service that allows remote CRUD of a database, using nameko and sqlalchemy. For some methods/properties/event handlers, my models require to fetch some data using a dependency. The way I'd like it to work, whenever I call one…
I've created a nameko service that sends a text message to the provided phone number. Using the Africas Talking API. The service runs successfully but once you use the nameko shell it doesn't work. However the phone number is successfully passed…
if you saw my last question one hour ago or almost) !
I managed to resolve a lot of problems but I'm stuck with one and I can't understand why I have it. I prefer to make a new thread because the error isn't the same and for future readers, it will…
I try to use a nameko rpc server to read data from mysql. here is the server code.
class SendService:
name = 'url_feature_rpc_service'
def __init__(self):
print('new connection')
self.db = MySQLdb.connect(host="localhost",…
I am trying to understand how nameko works for basic RPC.
I am looking to define microservices in separate files and being able to run them from command shell. With this structure service2 is not being able to invoke service1's RPC method. What is…