os/slacker

Thread-safety/usage advice

seslatero opened this issue · 1 comments

Hi there,

Sorry if this is the wrong avenue to post this on, but here I go.

I want to use slacker in a django app, which will have at least 2 threads, and many components, and I'm wondering what the best way to use the Slacker class is in this case.

Should I use it as a singleton for the project? for the individual app? for each module? for each thread?

Interested in your thoughts.

EDIT: This is a 'question', but it won't let me set the labels.

os commented

Hi @JF26, sorry for my late response. Slacker is thread-safe. You can create a single instance and use it across your project.