jessepollak / flask-nameko Goto Github PK
View Code? Open in Web Editor NEWA wrapper for using nameko services with Flask
License: ISC License
A wrapper for using nameko services with Flask
License: ISC License
flask-nameko/flask_nameko/connection_pool.py
Lines 61 to 64 in 543c764
When self._make_connection ()
raises an exception a deadlock occurs
Project dir
│ manage.py
│ requirements.txt
└─app
│ __init__.py
│
├─configs
│ │ deploy.py
│ │ settings.py
│ │ __init__.py
│
├─errors
│
├─models
│
├─services
│ │ greeting_service.py
│ │ __init__.py
│
├─utils
│
├─views
│ │ hello.py
│ │ __init__.py
services/__init__.py
from flask_nameko import FlaskPooledClusterRpcProxy
rpc = FlaskPooledClusterRpcProxy()
def init_rpc(app):
rpc.init_app(app)
services/greeting_service.py
from nameko.rpc import rpc
class GreetingService:
name = "greeting_service"
@rpc
def hello(self, name):
return "Hello, {}!".format(name)
app/__init__.py
from flask import Flask
from app.services import init_rpc
def create_app():
app = Flask(__name__)
.....
init_rpc(app)
return app
How can i get correlation id (call id) of proxy call for logging extras?
Hey guys,
I was wondering if there's a way to get non-blocking mechanism using flask-nameko and I couldn't find any resource online that issues my concern.
Could you guide me please?
When using FlaskPooledClusterRpcProxy, I expected it to maintain an RPC connection, but in reality, a new connection is established every time a request is made. I would like to know how to solve this issue.
Is this safe with 3?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.