# Uncategorized

**URL:** https://discourse.nameko.io/c/uncategorized/1.md

[Latest](https://discourse.nameko.io/latest.md) · [Categories](https://discourse.nameko.io/categories.md)

---

## [Welcome to Nameko's Discourse](https://discourse.nameko.io/t/welcome-to-namekos-discourse/8)

<div class="topic-metadata">

**Author:** [@system](https://discourse.nameko.io/u/system)\
**Replies:** 0\
**Last updated:** [August 1, 2018, 5:13pm UTC](https://discourse.nameko.io/t/welcome-to-namekos-discourse/8 "2018-08-01T17:13:11Z")

</div>

Welcome! This is the support site for Nameko. You’ll find frequently asked questions and answers here to help you use the framework. .

---

## [How to handle external websockets?](https://discourse.nameko.io/t/how-to-handle-external-websockets/352)

<div class="topic-metadata">

**Author:** [@No\_Split\_Sherlock](https://discourse.nameko.io/u/No_Split_Sherlock)\
**Replies:** 3\
**Last updated:** [June 10, 2024, 1:06pm UTC](https://discourse.nameko.io/t/how-to-handle-external-websockets/352 "2024-06-10T13:06:01Z")

</div>

Hey there! I’m quite new to microservices and Nameko. I hope someone can help me. I’m trying to open multiple websocket clients that receive external datastreams. I want to be able to (at some point) maybe interact with…

---

## [Implement reverse proxy in nameko http route](https://discourse.nameko.io/t/implement-reverse-proxy-in-nameko-http-route/797)

<div class="topic-metadata">

**Author:** [@alihossein](https://discourse.nameko.io/u/alihossein)\
**Replies:** 0\
**Last updated:** [July 1, 2023, 9:13am UTC](https://discourse.nameko.io/t/implement-reverse-proxy-in-nameko-http-route/797 "2023-07-01T09:13:42Z")

</div>

Hi. 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 = \[…

---

## [Are concurrently running methods the same as workers?](https://discourse.nameko.io/t/are-concurrently-running-methods-the-same-as-workers/793)

<div class="topic-metadata">

**Author:** [@NirPisatto](https://discourse.nameko.io/u/NirPisatto)\
**Replies:** 0\
**Last updated:** [May 2, 2023, 12:28am UTC](https://discourse.nameko.io/t/are-concurrently-running-methods-the-same-as-workers/793 "2023-05-02T00:28:37Z")

</div>

As the default max\_workers is 10,Does this mean that a service class method can execute up to 10 methods at once? Since in my case, I used “nameko run” to up a service class and what I observed that only one method was …

---

## [Is it possible to dispatch event asynchronously without waiting?](https://discourse.nameko.io/t/is-it-possible-to-dispatch-event-asynchronously-without-waiting/792)

<div class="topic-metadata">

**Author:** [@NirPisatto](https://discourse.nameko.io/u/NirPisatto)\
**Replies:** 5\
**Last updated:** [April 22, 2023, 7:47pm UTC](https://discourse.nameko.io/t/is-it-possible-to-dispatch-event-asynchronously-without-waiting/792 "2023-04-22T19:47:04Z")

</div>

One of my event listening task (event\_handler) is taking long time to processing. So is there any way to emit the event and let it work as async function without await? Thank !!

---

## [How different nameko run proccesses share one listen socket?](https://discourse.nameko.io/t/how-different-nameko-run-proccesses-share-one-listen-socket/785)

<div class="topic-metadata">

**Author:** [@litmax](https://discourse.nameko.io/u/litmax)\
**Replies:** 2\
**Last updated:** [February 27, 2023, 11:30am UTC](https://discourse.nameko.io/t/how-different-nameko-run-proccesses-share-one-listen-socket/785 "2023-02-27T11:30:51Z")

</div>

Hi folks! I am trying to understand how things work behind the scene. When I run a service that uses HttpEntrypoint it binds to port 8000 and handles requests. When I start another process in my opinion it is supposed…

---

## [Service that dynamically spawns and kills managed threads?](https://discourse.nameko.io/t/service-that-dynamically-spawns-and-kills-managed-threads/787)

<div class="topic-metadata">

**Author:** [@mhirota-impinj](https://discourse.nameko.io/u/mhirota-impinj)\
**Replies:** 3\
**Last updated:** [February 26, 2023, 4:34pm UTC](https://discourse.nameko.io/t/service-that-dynamically-spawns-and-kills-managed-threads/787 "2023-02-26T16:34:13Z")

</div>

Any suggestions on creating a nameko service that allows for an RPC call to dynamically spawn, and then later, kill, a managed thread? So far, I’ve been able to spawn managed threads, but I’m looking for a way to stop t…

---

## [Nameko v3.0.0rc11: Passing config to worker\_factory](https://discourse.nameko.io/t/nameko-v3-0-0rc11-passing-config-to-worker-factory/788)

<div class="topic-metadata">

**Author:** [@sradhakrishna](https://discourse.nameko.io/u/sradhakrishna)\
**Replies:** 3\
**Last updated:** [February 8, 2023, 11:45am UTC](https://discourse.nameko.io/t/nameko-v3-0-0rc11-passing-config-to-worker-factory/788 "2023-02-08T11:45:02Z")

</div>

Hi, I am using v3.0.0rc11. My service is defined as below: import logging from nameko import config from nameko.rpc import rpc class MyService: name = config.get('SERVICE\_NAME') logger = logging.getLogger(\_\_n…

---

## [How to return ACK from consumer as soon as message is received/consumed?](https://discourse.nameko.io/t/how-to-return-ack-from-consumer-as-soon-as-message-is-received-consumed/765)

<div class="topic-metadata">

**Author:** [@aspirine](https://discourse.nameko.io/u/aspirine)\
**Replies:** 1\
**Last updated:** [November 21, 2022, 4:08pm UTC](https://discourse.nameko.io/t/how-to-return-ack-from-consumer-as-soon-as-message-is-received-consumed/765 "2022-11-21T16:08:47Z")

</div>

I am using nameko.messaging.consume for consuming messages from a queue. Here’s a sample code - from kombu import Queue from nameko.messaging import consume class Service: name = "sample\_service" QUEUE = Queue(…

---

## [Nameko shell hangs on rpc call](https://discourse.nameko.io/t/nameko-shell-hangs-on-rpc-call/774)

<div class="topic-metadata">

**Author:** [@alf](https://discourse.nameko.io/u/alf)\
**Replies:** 1\
**Last updated:** [October 25, 2022, 1:01pm UTC](https://discourse.nameko.io/t/nameko-shell-hangs-on-rpc-call/774 "2022-10-25T13:01:41Z")

</div>

Initially the nameko shell is able to communicate with the nameko service. The service is a simple hello world: class GreetingService: name = 'greeting' @rpc def hello(self): return f"{datetime.today…

---

## [About terminating asynchronous tasks](https://discourse.nameko.io/t/about-terminating-asynchronous-tasks/771)

<div class="topic-metadata">

**Author:** [@louis.wang](https://discourse.nameko.io/u/louis.wang)\
**Replies:** 0\
**Last updated:** [June 28, 2022, 9:21am UTC](https://discourse.nameko.io/t/about-terminating-asynchronous-tasks/771 "2022-06-28T09:21:47Z")

</div>

The previous project was implemented asynchronously with djang+celery. In the asynchronous task, celery can call the revoke method through the current task\_id to terminate the currently running task. Now I have used name…

---

## [Error while calling Dask cluster in Nameko worker](https://discourse.nameko.io/t/error-while-calling-dask-cluster-in-nameko-worker/758)

<div class="topic-metadata">

**Author:** [@giorgiobasile](https://discourse.nameko.io/u/giorgiobasile)\
**Replies:** 3\
**Last updated:** [May 9, 2022, 8:46pm UTC](https://discourse.nameko.io/t/error-while-calling-dask-cluster-in-nameko-worker/758 "2022-05-09T20:46:48Z")

</div>

Hi, I’m trying to use Dask within a Nameko service, but I’m running into some issues. Here is a sample code I use: from nameko.rpc import rpc from dask.distributed import Client import dask.array as da # creates a …

---

## [Unit testing without a real rabbitmq instance](https://discourse.nameko.io/t/unit-testing-without-a-real-rabbitmq-instance/743)

<div class="topic-metadata">

**Author:** [@sradhakrishna](https://discourse.nameko.io/u/sradhakrishna)\
**Replies:** 2\
**Last updated:** [April 21, 2022, 8:50am UTC](https://discourse.nameko.io/t/unit-testing-without-a-real-rabbitmq-instance/743 "2022-04-21T08:50:36Z")

</div>

Hi, I am writing pytest based unit tests for my nameko services as outlined here: Testing Services — nameko 2.12.0 documentation. I’ve been using container\_factory for testing my services for the most part. A few instan…

---

## [Retry decorater](https://discourse.nameko.io/t/retry-decorater/763)

<div class="topic-metadata">

**Author:** [@renewfrl](https://discourse.nameko.io/u/renewfrl)\
**Replies:** 0\
**Last updated:** [April 20, 2022, 11:26pm UTC](https://discourse.nameko.io/t/retry-decorater/763 "2022-04-20T23:26:15Z")

</div>

I believe there is something odd in the utils/retry.py decorator which should be put to attention. Not sure if it is intentional or not but at least I spent some time on it to discover the reason behind :wink: the issue…

---

## [Potential concurrency issues with pyscopg2?](https://discourse.nameko.io/t/potential-concurrency-issues-with-pyscopg2/752)

<div class="topic-metadata">

**Author:** [@checor](https://discourse.nameko.io/u/checor)\
**Replies:** 0\
**Last updated:** [March 23, 2022, 7:11pm UTC](https://discourse.nameko.io/t/potential-concurrency-issues-with-pyscopg2/752 "2022-03-23T19:11:35Z")

</div>

Hello! I found this interesting question regarding nameko, sqlalchemy and psycopg2, but unfortunately, is unanswered: python - Potential Nameko concurrency issues with pyscopg2 driver for Postgresql - Stack Overflow A …

---

## [How can I differentiate an RpcProxy call from a ClusterRpcProxy call?](https://discourse.nameko.io/t/how-can-i-differentiate-an-rpcproxy-call-from-a-clusterrpcproxy-call/744)

<div class="topic-metadata">

**Author:** [@betacar](https://discourse.nameko.io/u/betacar)\
**Replies:** 0\
**Last updated:** [March 1, 2022, 12:19pm UTC](https://discourse.nameko.io/t/how-can-i-differentiate-an-rpcproxy-call-from-a-clusterrpcproxy-call/744 "2022-03-01T12:19:23Z")

</div>

So, I’ve setup multiple nameko services, where some of them call between each other (inter-service calls), using RpcProxy. But, along with that, I’ve also setup a fastapi service that calls those services via ClusterRpcP…

---

## [How upgrade from version 2.1x to version 3](https://discourse.nameko.io/t/how-upgrade-from-version-2-1x-to-version-3/727)

<div class="topic-metadata">

**Author:** [@lockeduan](https://discourse.nameko.io/u/lockeduan)\
**Replies:** 1\
**Last updated:** [February 15, 2022, 10:46am UTC](https://discourse.nameko.io/t/how-upgrade-from-version-2-1x-to-version-3/727 "2022-02-15T10:46:01Z")

</div>

Hi, we are using nameko 2.12 on production, should we keep using 2, or should we upgrade to 3? and, is there any simple way to upgrade? Thanks

---

## [Time to go 2 -\> 3?](https://discourse.nameko.io/t/time-to-go-2-3/740)

<div class="topic-metadata">

**Author:** [@geoffjukes](https://discourse.nameko.io/u/geoffjukes)\
**Replies:** 3\
**Last updated:** [February 15, 2022, 6:58am UTC](https://discourse.nameko.io/t/time-to-go-2-3/740 "2022-02-15T06:58:14Z")

</div>

Hi, Still loving Nameko. I’ve put off the move from 2 to 3 until release - but like BOTW2, it’s in limbo. I’m starting a full refactor of the services I run that use 2, so I figure now is the best time to try out 3. A…

---

## [Authentication/ Authorization with Websockets](https://discourse.nameko.io/t/authentication-authorization-with-websockets/737)

<div class="topic-metadata">

**Author:** [@sradhakrishna](https://discourse.nameko.io/u/sradhakrishna)\
**Replies:** 0\
**Last updated:** [January 24, 2022, 6:55pm UTC](https://discourse.nameko.io/t/authentication-authorization-with-websockets/737 "2022-01-24T18:55:08Z")

</div>

Hi, I am looking for best practices in implementation schemes for authenticating websocket communication. At the moment, this is the workflow I am considering: Client (Web UI) gets a JWT from invoking a REST API endpo…

---

## [Nameko test: Module already imported warning](https://discourse.nameko.io/t/nameko-test-module-already-imported-warning/714)

<div class="topic-metadata">

**Author:** [@checor](https://discourse.nameko.io/u/checor)\
**Replies:** 3\
**Last updated:** [December 6, 2021, 10:01am UTC](https://discourse.nameko.io/t/nameko-test-module-already-imported-warning/714 "2021-12-06T10:01:26Z")

</div>

Hello, I’m using nameko and it’s a breeze! I have a doubt about a warning I get when I run nameko test, as the pytest warning recommends. Every time I run it, it says: =================================================…

---

## [Kombu \< 5.2.1 safety issues in dependencies. What it takes to migrate to 5.x?](https://discourse.nameko.io/t/kombu-5-2-1-safety-issues-in-dependencies-what-it-takes-to-migrate-to-5-x/722)

<div class="topic-metadata">

**Author:** [@renewfrl](https://discourse.nameko.io/u/renewfrl)\
**Replies:** 3\
**Last updated:** [December 6, 2021, 10:00am UTC](https://discourse.nameko.io/t/kombu-5-2-1-safety-issues-in-dependencies-what-it-takes-to-migrate-to-5-x/722 "2021-12-06T10:00:39Z")

</div>

The latest release of kombu contained new versions for dependencies. According to safety.py these dependencies contained security fixes (try latest sqs dependencies · celery/kombu@f3b0455 · GitHub) What does it take to…

---

## [One exchange per service for events](https://discourse.nameko.io/t/one-exchange-per-service-for-events/716)

<div class="topic-metadata">

**Author:** [@MahdiZareie](https://discourse.nameko.io/u/MahdiZareie)\
**Replies:** 3\
**Last updated:** [November 10, 2021, 11:24am UTC](https://discourse.nameko.io/t/one-exchange-per-service-for-events/716 "2021-11-10T11:24:13Z")

</div>

Hi I was reviewing the runtime structure of nameko. I was wondering why did you decide to create one exchange per service for events? For example, Couldn’t we have a single central exchange for all the events in the sy…

---

## [Adding werkzeug custom converters](https://discourse.nameko.io/t/adding-werkzeug-custom-converters/712)

<div class="topic-metadata">

**Author:** [@erichorne](https://discourse.nameko.io/u/erichorne)\
**Replies:** 1\
**Last updated:** [November 9, 2021, 3:21pm UTC](https://discourse.nameko.io/t/adding-werkzeug-custom-converters/712 "2021-11-09T15:21:12Z")

</div>

Still loving nameko! One day I’ll actually finish my project that uses it. I’d like to add custom werkzeug converter to my http interfaces, but I’m not exactly sure how to register the converter with nameko. Werkzeug do…

---

## [Roadmap to nameko 3.0.0](https://discourse.nameko.io/t/roadmap-to-nameko-3-0-0/509)

<div class="topic-metadata">

**Author:** [@vlcinsky](https://discourse.nameko.io/u/vlcinsky)\
**Replies:** 7\
**Last updated:** [October 13, 2021, 4:41pm UTC](https://discourse.nameko.io/t/roadmap-to-nameko-3-0-0/509 "2021-10-13T16:41:37Z")

</div>

Nameko 3.x is in RC for more than a year. For developing new applications based on nameko 3 it would be great to have it released to provide stability. My proposal is: agree on releasing nameko 3 as priority close rea…

---

## [Any Python 3.8 issues?](https://discourse.nameko.io/t/any-python-3-8-issues/704)

<div class="topic-metadata">

**Author:** [@geoffjukes](https://discourse.nameko.io/u/geoffjukes)\
**Replies:** 2\
**Last updated:** [September 29, 2021, 8:16pm UTC](https://discourse.nameko.io/t/any-python-3-8-issues/704 "2021-09-29T20:16:02Z")

</div>

Hi, I’m looking to move my services to Python 3.8 I built a dummy service, including Sentry, and things seem to work OK. Are there any known issues/gotchas before I start moving more services? Thanks in advance, Geo…

---

## [Singleton (?) MySQL Binary watcher](https://discourse.nameko.io/t/singleton-mysql-binary-watcher/703)

<div class="topic-metadata">

**Author:** [@geoffjukes](https://discourse.nameko.io/u/geoffjukes)\
**Replies:** 0\
**Last updated:** [September 21, 2021, 9:52pm UTC](https://discourse.nameko.io/t/singleton-mysql-binary-watcher/703 "2021-09-21T21:52:36Z")

</div>

Hi, It’s been a while. Still happily using Nameko, with no problems to report :slight\_smile: I’m looking at adding a MySQL binary log watcher to our services. The use-case is to monitor specific MySQL tables for activi…

---

## [Concurrent webrequests seem threaded instead of greenthreaded](https://discourse.nameko.io/t/concurrent-webrequests-seem-threaded-instead-of-greenthreaded/694)

<div class="topic-metadata">

**Author:** [@remcoboerma](https://discourse.nameko.io/u/remcoboerma)\
**Replies:** 5\
**Last updated:** [May 25, 2021, 2:08pm UTC](https://discourse.nameko.io/t/concurrent-webrequests-seem-threaded-instead-of-greenthreaded/694 "2021-05-25T14:08:43Z")

</div>

Hi, i’ve created a little repository to show what i’m up against. Any help would really be appreciated. Probably i’m doing very simple, very wrong, but i don’t have the faintest idea. Here’s the readme: Nameko uses …

---

## [Async IO Support](https://discourse.nameko.io/t/async-io-support/682)

<div class="topic-metadata">

**Author:** [@sonthonaxrk](https://discourse.nameko.io/u/sonthonaxrk)\
**Replies:** 4\
**Last updated:** [May 22, 2021, 4:04pm UTC](https://discourse.nameko.io/t/async-io-support/682 "2021-05-22T16:04:51Z")

</div>

Async IO Support I’m no fan of Async IO, but it’s increasingly becoming unavoidable day to day. However I am a fan of Nameko, and I think it provides great abstractions to various RPC interfaces. I know this has obvio…

---

## [Missing RMQ message in consume callback method](https://discourse.nameko.io/t/missing-rmq-message-in-consume-callback-method/692)

<div class="topic-metadata">

**Author:** [@spyrosmarko](https://discourse.nameko.io/u/spyrosmarko)\
**Replies:** 0\
**Last updated:** [May 19, 2021, 6:06pm UTC](https://discourse.nameko.io/t/missing-rmq-message-in-consume-callback-method/692 "2021-05-19T18:06:27Z")

</div>

Hi, I wanted to ask why at Consumer entrypoint, that will be used as consume decorator, the RMQ Message that includes info like delivery\_info it’s not included at handle\_message. I can see that the callback that gets de…

---

## [Multi-threading in Rpc Calls](https://discourse.nameko.io/t/multi-threading-in-rpc-calls/680)

<div class="topic-metadata">

**Author:** [@colin](https://discourse.nameko.io/u/colin)\
**Replies:** 2\
**Last updated:** [April 19, 2021, 10:15pm UTC](https://discourse.nameko.io/t/multi-threading-in-rpc-calls/680 "2021-04-19T22:15:51Z")

</div>

Hi guys - I said that before - but it’s worth repeating it - congrats on creating and maintaining such an easy-to-use framework. I am trying to understand and/or get feedback from people with experience on the followin…

[Next page](https://discourse.nameko.io/c/uncategorized/1.md?page=1)
