4 ms·
At our company we have to log API usage (we're using Django+Apache). First we tried the database way, then moved to Apache logging as described here, but have f
by waterside81 16y ago
At our company we have to log API usage (we're using Django+Apache). First we tried the database way, then moved to Apache logging as described here, but have finally settled on using redis. We push data into redis and have another worker which just pulls off redis every X seconds/minutes and update the database like that.
Redis is amazing at this sort of thing and the python client for it is nicely written, with great docs.