Zettelkasten
Search
⌘K
Graph
Tags
#
python
38개
GIL을 놓는 C 확장 함수는 gevent threadpool로 넘기면 허브 정지가 사라진다
1,328자
gevent
python
gil
blocking
threadpool
New Relic 파이썬 에이전트의 패키지 목록 수집이 gevent 허브를 harvest마다 최대 2초 막는다
3,266자
gevent
new-relic
python
blocking
observability
gevent의 monkey.patch_all은 파일 IO를 논블로킹으로 만들지 않는다
1,385자
gevent
python
blocking
file-io
경과 시간 측정에는 time.time()이 아니라 뒤로 안 가는 time.monotonic()을 써야 한다
1,105자
python
clock
time
timeout
SSCursor는 결과를 서버에 두고 행 단위로 흘려보내 클라이언트 메모리 대신 커넥션 점유를 택한다
1,959자
mysql
python
database
streaming
Python 3.11 gevent 성능은 greenlet 패치 버전에 좌우된다 - 3.2.4는 느리고 3.4.0+는 회복한다
2,066자
python
gevent
greenlet
performance
benchmark
Python datetime 의 localize 는 라벨링이고 astimezone 이 진짜 변환이다
1,184자
python
datetime
timezone
pytz
naive-aware-datetime
Python에서 SSE는 ASGI 환경에서만 운영 가능하다
2,958자
sse
asgi
wsgi
python
fastapi
django
streaming
http
gunicorn sync worker는 keep-alive를 무의미하게 만든다
1,019자
gunicorn
http-keepalive
python
nginx
performance
Gunicorn 워커 수가 많아지면 thundering herd로 인해 일부 워커만 요청을 받는다
1,267자
gunicorn
thundering-herd
haproxy
python
performance
django
ASGI는 WSGI에 async를 얹은 것이 아니라 양방향 메시지 스트림 모델로 재설계된 것이다
1,026자
python
wsgi
asgi
web-server
protocol
Gunicorn은 WSGI 프로세스 매니저, Uvicorn은 ASGI 이벤트 루프 서버다
1,514자
python
wsgi
asgi
gunicorn
uvicorn
web-server
GIL은 race condition을 가릴 수 있어 안 보인다가 안전하다를 의미하지 않는다
725자
python
threading
concurrency
gil
race-condition
Lock의 critical section은 최소한으로 작게 유지해야 한다
868자
python
threading
concurrency
lock
critical-section
threading.Timer는 one-shot non-daemon 스레드라 반복과 종료를 직접 다뤄야 한다
1,175자
python
threading
timer
daemon
Python ctypes로 C 네이티브 라이브러리의 미구현 함수를 바인딩할 수 있다
972자
python
ctypes
ffi
native-binding
agora
파이썬 메타클래스는 클래스의 생성과 동작을 제어한다
185자
python
metaclass
OOP
python 3.12부턴 cpython stack이 PyInterpreterFrame으로 관리된다.
471자
python
Python 동시성 프로그래밍
662자
concurrency
python
Timsort는 merge sort와 insertion sort를 결합한 구조의 정렬 알고리즘이다.
439자
algorithm
python
CGI, FastCGI, WSGI
258자
python
web-server
WSGI
Django ORM 고급 기능
1,455자
django
ORM
python
__pycache__
224자
python
bytecode
import
gunicorn worker
1,306자
python
gunicorn
pydantic
449자
python
pydantic
validation
python MetaClass 다중상속 문제
254자
python
metaclass
inheritance
python dictionary 구현체
336자
python
data-structure
hash
파이썬에서 인터페이스 없는 이유
249자
python
interface
duck-typing
python 3.11 이후부턴 gevent 성능이 악화될 수 있다.
1,568자
python
gevent
concurrent.futures.ThreadPooolExecutor 동작
516자
python
implementation
django orm은 thread-safe 하다
233자
django
python
database
django prefetch_related objects 구현
269자
python
django
implementation
python ThreadPoolExecutore sumbit과 map 동작 차이
209자
python
sync to async 구현
306자
python
implementation
Python array doubling 방식
662자
python
data-structure
greenlet의 동작 방식
353자
python
gevent
green-thread
Gevent에서 grpc가 문제가 되는 이유
567자
python
gevent
concurrency
Gevent에서 threading local이 문제가 되는 이유 - 거짓
301자
python
gevent
concurrency