Comments (2)
Hi! With multiprocessing we cannot correctly pass context_manager
and setup_fn
parameters to Server.add_service
if they allocate system resources (connections to databases, for example). On Linux, you can run multiple instances of your server on the same port with SO_REUSEPORT
option, this will effectively load balance the traffic on TCP connection level, if this is what you want. I will be updating example code shortly.
from purerpc.
oh~ Thanks a lot!
from purerpc.
Related Issues (20)
- [Discussion] Make integrations with asyncio projects more friendly HOT 7
- Benchmark purerpc under CPython/PyPy against other gRPC implementations
- Docs needed
- BREAKING CHANGE: Stable API for 1.0 release
- Crash when message is larger than max
- AttributeError: module 'socket' has no attribute 'SO_REUSEPORT' HOT 3
- Support creating channels on unix sockets HOT 1
- test_util requires forge dependency
- How do I have a long-lasting client?
- tests fail on Python 3.8 (macOS) HOT 1
- anyio dependency is too limited
- maintenance tasks HOT 3
- ClientStubStreamStream uses yield inside a task group HOT 5
- CI: macos target hangs during pytest HOT 5
- Give access to request headers and ability to respond with custom headers HOT 4
- Review TODOs
- Timeouts and deadlines
- TLS HOT 1
- dictConfig in misc/greeter is excessive HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from purerpc.