Skip to content

Instantly share code, notes, and snippets.

View erichorne's full-sized avatar

Eric Horne erichorne

  • United States
View GitHub Profile
@erichorne
erichorne / client.py
Created November 26, 2020 21:01
Results from running a simple nameko service that calls another service via rpc on a dell r730 2x10C xeon 3.1GHz system 128GB RAM/ python 3.7.7 and rabbit 3.6.6
from nameko.standalone.rpc import ClusterRpcProxy
from time import perf_counter, sleep
import pkg_resources
config = {
"AMQP_URI": "amqp://guest:guest@localhost:5672" # e.g. "pyamqp://guest:guest@localhost"
}
with ClusterRpcProxy(config) as cluster_rpc: