A screamingly fast, ultra-lightweight WSGI server for CPython, written in C using Marc Lehmann's high performance libev event loop and Ryan Dahl's http-parser.
Questions tagged [bjoern]
8 questions
7
votes
1 answer
Bjoern v/s Gunicorn POST requests
Isn't Bjoern supposed to faster that Gunicorn ??
simple_app.py
from flask import Flask, request, jsonify
app = Flask(__name__)
@app.route('/suggest/', methods=['POST'])
def hello():
content = request.get_json()
return jsonify(**content),…

vin
- 960
- 2
- 14
- 28
3
votes
1 answer
Set Nginx Timeout & Default JSON Response
I have a simple Falcon REST API for a POST request that accepts the JSON formatted body:
{ "Input": "input string request" }
and returns:
{ "Output: "output string response" }
It may be helpful to note that in production, all the requests will be…

spatel4140
- 383
- 3
- 10
1
vote
1 answer
Python App Servers (Bjoern vs Gunicorn)
I am benchmarking python WSGI app servers.
I am running bjoern as follows:
bjoern.run(wsgi_app, host, port)
And Gunicorn as such:
gunicorn -w 2 --bind 0.0.0.0:5000 gun_server:wsgi_app --log-level=DEBUG --timeout 90
However, I am observing that…

vin
- 960
- 2
- 14
- 28
1
vote
0 answers
Scaling Bjoern to multiple servers
I'm building a high performance web framework using Bjoern as the WSGI server.
I'm now wondering, if you need to handle say, 200.000 req/s, how would you scale/spread Bjoern to multiple servers, or rather load-balance as it's commonly called? What…

Bashar
- 13
- 4
0
votes
1 answer
Change gunicorn to bjoern in docker-compose.yml
I have a service in which I run gunicorn through docker-compose. The part where the gunicorn started is the following line in the .yml file:
my-service:
command: gunicorn my-service.wsgi:application --name=my-service --timeout=50 --workers=5…

Esther_5
- 151
- 2
- 10
0
votes
0 answers
python 3 bjoern error compiler with msvc flag cl.exe failed with exit status 2
I can not compile bjoern for version 3 of python these are the versions I'm using
windows 10
python 3.4
bjoern-py3 -> [https://github.com/isaiah/bjoern-py3][1][1]: https://github.com/isaiah/bjoern-py3
visual c++ -> Visual C++ for Python-9.0
this is…

Francisco
- 539
- 2
- 8
- 25
0
votes
1 answer
Bjoern WSGI server unix socket permissions
Is there a way to force UID/permissions on the unix socket created by Bjoern WSGI server?
By default it creates socket with the following permissions:
srwxr-xr-x
I need to change that to:
srwxrw-rw-

NarūnasK
- 4,564
- 8
- 50
- 76
-1
votes
1 answer
cv2 imdecode, imencode and transporting images over http using multipart encoder
I am stumped, maybe I am misunderstanding something so I will post and see what insights come back.
I have a Flask API app (bjoern WSGI) that uses JWT for auth. I send the flask app some credentials and a local URL to hit an API that will provide…

baudneo
- 1
- 2