You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In short, this a solution to proxy your network to bypass Firewall with stable connections, and also unblock Proxy detection for Netflix/Spotify/etc....
If you've written Python web application, you will find a dozen of server framework and deployment components on the Internet
Or If you take over other teammate's project, though they are all Python code, you may found they use various framework and W(A)SGI lib
"Oh, it's django app, I can start it with python manage.py runserver, but why the deployment command is gunicorn xxx:xxx instead of python manage.py runserver". what is the concurrency capabilities of our system? How many process and thread will the server start? Is it blocking IO or non-blocking IO ?, you start to get confused
You need to understand how it works to choose the proper framework and tune the configuration
We are developing Web application based on sanic framework
Due to the complexity of business, we need to integrate http pool, redis/es pool, database connection pool, even if you're not going to use connection pool, you will need to singleton your connection to gain performance
Python's async power is based on event driven loop, all the connections need to be integrate with the loop
es painless nested script aggregation and sum of all buckets
I need to achieve my goal in a single ES query:
Know how many employees in every department in a company, and get the count of active employees, new employees, and leave employees for every department, and sum these buckets to get the active/new/leave count for company
The specific condition can be described as follow(simplified version)
Need to search for all employee in the target company (c_company_id field)
Need to count the employee without a department("missing": "unknown")
The employee only stores hire date and leave date
The count of active employees in the beginning of the month(employed_origin field)