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…
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…
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…
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.
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 =…
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 =…
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…
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:…
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):
…
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…
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…
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,…
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…
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…