jessepollak / jessepollak/mixpanel-python-async

gunicorn workers

Open
#21 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
62
Forks
16
PR merge metrics
No merged PRs in 30d

Description

thank you very much for this library, I'm considering the trade-offs between using this library or delegating this to celery events. (and sending the events async through celery workers)

can this library work with gunicorn workers? if yes with which types?

Sync Workers
Async Workers
Tornado Workers
AsyncIO workers

where are the events buffered? process or thread-level?

if our gunicorn worker is restarted because of max requests setting, can we possibly lose events? or does this library block killing of the worker until buffer is cleared.

https://docs.gunicorn.org/en/stable/settings.html#max-requests

what's the possibility of buffer overflow if we seem to get more requests than mixpanel actually responds?

again thank you, I'll dive into the code to see if I can figure some of this stuff out myself 🥇

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading the library's asynchronous event and buffering implementation together with Gunicorn's worker and max-requests documentation. Trace how events are queued, flushed, and handled during worker shutdown for each worker type. Done means documenting supported worker types, buffer scope, restart-loss behavior, and overflow handling.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.