2 ms·
1) The queues execute model methods. Unit test model methods as normal. 2) Test that methods which should add things to the queue actually do, using mocks o
by patio11 15y ago
1) The queues execute model methods. Unit test model methods as normal.
2) Test that methods which should add things to the queue actually do, using mocks or what have you.
3) Build monitoring infrastructure so that if e.g. the queue worker goes down hard in production it restarts automatically and, if this doesn't solve it, you get woken up ASAP. This is far and away my most common infrastructural issue over the last ~3 years.
- dchuk 15y agoto add to this, distribute your worker processes onto multiple machines. That way if you lose a machine, your queue will still process jobs (albeit slightly crippled).