# Gunicorn with gevent

> Green threads hold many I/O waits per process, so a slow database stops holding a worker. Monkey patching can break a library. 30 KB per connection.

## Trade-offs

| Axis | Score |
| --- | --- |
| Throughput | |
| Tail latency | |
| Memory | |
| Velocity | |
| Resilience | |
| Operability | |

## Frameworks

- [Django](https://wiki.playquorum.dev/frameworks/django.md)
- [Flask](https://wiki.playquorum.dev/frameworks/flask.md)
- [FastAPI](https://wiki.playquorum.dev/frameworks/fastapi.md)

## Engineering terms

- [Green threads](https://wiki.playquorum.dev/glossary/green-threads.md)
- [GIL (global interpreter lock)](https://wiki.playquorum.dev/glossary/gil-global-interpreter-lock.md)

## Facts

Gunicorn with gevent
- **Language:** Python
- **Concurrency:** Green threads
- **Speed:** ×0.2
- **Memory:** 120 MB
- **Startup:** 5 s
- **Warm-up:** 15 s
- **GC pause:** None
- **Unlocked by:** [gevent](https://wiki.playquorum.dev/research/gevent.md)
- **Velocity:** ×1.15
- **Salary:** ×1.05
- **Build:** 1 min

## See also

- [Runtimes and frameworks](https://wiki.playquorum.dev/runtimes.md)
- [Django](https://wiki.playquorum.dev/frameworks/django.md)
- [Flask](https://wiki.playquorum.dev/frameworks/flask.md)
- [FastAPI](https://wiki.playquorum.dev/frameworks/fastapi.md)

Source: https://wiki.playquorum.dev/runtimes/gevent
