Questions tagged [nameko]

Python framework for building microservices

Python framework for building microservices

55 questions
1
vote
1 answer

Connection refused: AMQP server with nameko

Scenario: We are trying to connect to RabbitMQ using nameko through AMQP server. Below is the traceback, Traceback (most recent call last): File "d:\programfiles\lib\runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File…
1
vote
1 answer

Scrapy Nameko DependencyProvider not crawling the page

I'm using scrapy to create a sample web crawler as an Nameko dependecy provider but it's not crawling any page. Below is the code import scrapy from scrapy import crawler from nameko import extensions from twisted.internet import reactor class…
Program Questions
  • 440
  • 2
  • 6
  • 20
1
vote
1 answer

How to use service runner in nameko?

As written in nameko's document, I run this example and it works: from nameko.runners import ServiceRunner from nameko.testing.utils import get_container from nameko.rpc import rpc class ServiceA: name = "service_a" class ServiceB: name…
Blackbelly
  • 11
  • 2
1
vote
1 answer

can nameko use python3?

nameko run --config ./foobar.yaml my_app the above line defaults to to running my_app with python2. can I change it to python3? the documentation doesn't show this option but considering you get get nameko with pip3 it sounds reasonable.
Alonzorz
  • 2,113
  • 4
  • 18
  • 21
0
votes
0 answers

Implement reverse proxy in nameko HTTP route

I want to implement a reverse proxy in the Nameko framework but I don’t know how I can do it. I did it in the FastApi framework: @app.get("/test") async def proxy(request: Request): try: os_headers = [] HTTP_SERVER =…
Alihossein shahabi
  • 4,034
  • 2
  • 33
  • 53
0
votes
1 answer

How to invoke the microservice from a Python script

This code defines the services: from nameko.rpc import rpc class GreetingService: name = "greeting_service" @rpc def hello(self, name): return "Hello, {}!".format(name) class MultiplyService: name =…
nicomp
  • 4,344
  • 4
  • 27
  • 60
0
votes
1 answer

How to publish to and consume from other rabbitmq exchange in nameko service?

I am working with nameko to develop a microservice in python. I want to listen on some queue which is defined in different exchange in rabbitMQ. Also I want to publish to other Exchange with routing key from this nameko service. How can I do…
0
votes
1 answer

nameko http micro service run fail with cyphon compiled pyd file but py file well

I develop a nameko http micro servie, and it can run well, but if I replace the file myhttp.py with a cyphon compiled file named myhttp.py, I will get [curl: (7) Failed to connect to localhost port 8000: Connection refused],please help me. step 1:…
wjh
  • 1
  • 1
0
votes
1 answer

Pydantic validation issue when using pagination with FastApi

Here is my code snippet: from fastapi_pagination import Page, add_pagination from fastapi_pagination.ext.sqlalchemy import paginate @app.get("/clients", response_model=Page[PydanticModel]) def get_items( db: Session = Depends(get_db) ) -> Any: …
Smaillns
  • 2,540
  • 1
  • 28
  • 40
0
votes
0 answers

Nameko and ImportError

There was a problem when starting a microservice written in the Nameko framework. When starting the microservice via the command nameko run name_file_with_class_microservice The following exception is thrown: Traceback (most recent call last): …
0
votes
1 answer

Getting "failed to resolve broker hostname" when trying to connect to rabbitmq in another docker container

I've been searching for hours as to how to connected to an external docker container running RabbitMQ. I'm trying to run a few services using Nameko which requires RabbitMQ. I've started my RabbitMQ container using the following command: docker run…
0
votes
0 answers

Python microservices with task management queues

I am trying to develop a micro-service system capable of managing queues of tasks in a parallel and highly efficient way, but I am stuck. I briefly describe how the system should behave. The system is made up of n micro-services, each of which…
Nixiam
  • 43
  • 7
0
votes
1 answer

I'm having trouble starting up my first python nameko service

I'm getting the following stack trace: Traceback (most recent call last): File "", line 991, in _find_and_load File "", line 975, in _find_and_load_unlocked File "", line 671, in _load_unlocked File "", line 783, in exec_module File "", line 219,…
0
votes
1 answer

Python Microservices with Nameko

I'm trying to follow the simple Python Microservices with Nameko example. I have both rabbitmq and rabbitmq management running in dockers: docker run -d --hostname my-rabbit --name some-rabbit rabbitmq:3 docker run -d --hostname my-rabbit --name…
Phil O
  • 1,588
  • 4
  • 28
  • 52
0
votes
1 answer

Nameko RPC Authentication Scheme

I am trying to identify whethere there are any authentication patterns for Nameko when using the RPC calls. For HTTP they're are some well documented examples with JWT, but with RPC this is lacking. What I want to achieve is that service to service…
Lucas Kauffman
  • 6,789
  • 15
  • 60
  • 86