Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4572432
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T19:38:43+00:00 2026-05-21T19:38:43+00:00

I have a django site. Certain actions by the end user send email to

  • 0

I have a django site. Certain actions by the end user send email to the rest of users in a group.

When the number of users gets to be > 20 it can add 1-3 seconds to the request cycle, which I don’t like. I’d like to be able to send the email from a non-blocking function.

I know RabbitMQ and Celery in conjunction can solve this, but with 200 users that seems like over-engineering and it adds two more applications I have to install, understand, and babysit.

I’ve done some research, and it appears that both threading.Thread and subprocess would be ways to wrap a non-blocking call. Am I missing an obvious way to do this? Are there downsides to using either the threading.thread or subprocess approach?

Thanks,
Ted

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T19:38:44+00:00Added an answer on May 21, 2026 at 7:38 pm

    Offloading the work to some other external process is really the right thing to do, and once you’ve done it, it’s not likely to be the last time you do it. Celery/RabbitMQ is a decent solution, and the nice thing is they’re already there. Recent RabbitMQ releases have a decent web-based management app and a decent management API that’ll make babysitting pretty easy, and celery works pretty well in Django apps.

    You can do this with subprocess or threading, but to be honest, I think that’s a bad habit to get into. Unfortunately, they’re the most straightforward ways to do what you want to do if you don’t want to offload things.

    If you wanted to go completely ‘ghetto async email’ you could have your app just dump emails to files in a directory and have a cron job check the directory for files in that directory every minute, and send them off as emails, but really that’s a lot more work than rabbit/celery.

    I say just go with rabbit/celery. It’s not as much work as it seems, and it’s worth it going forward.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to build a django site where a certain group of trusted users
I'm writing a django model that allows my site to have coupons. Coupons can
I have a nice and lovely Django site up and running, but have noticed
I'm about to deploy a mediumsized site powered by Django. I have a dedicated
I have a Django model with a large number of fields and 20000+ table
I have a django website that is spilt depending on what user type you
I have a Django app. When logged in as an admin user, I want
I've got a Django-based site that allows users to register (but requires an admin
I'm trying to write a monitor site so the temperature for certain devices gets
I have put my Django web site up to my web server and have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.