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

  • Home
  • SEARCH
  • 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 6660745
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:11:36+00:00 2026-05-26T02:11:36+00:00

On a high Twitter app site. Where the app sends tweets via the users

  • 0

On a high Twitter app site. Where the app sends tweets via the users oauth credentials. Should the tweets be sent in the background, via a background worker (Resque, Delayed Job, etc)? Or should the web process handle it?

  • 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-26T02:11:37+00:00Added an answer on May 26, 2026 at 2:11 am

    It really depends on your use case. Twitter itself I think sends an AJAX request to the API. You could do the same if it makes sense in your interface, but it does mean that you’re using a web process to do this. One of the benefits to this is that you can verify that the request was successful before returning a resopnse to the user. This is much easier than a scenario where you queue something in the background, it fails, and you want to alert the user (e.g. through a “real-time” ajax/socket-based message system or a flash notice on another request).

    If you aren’t worried about showing the Tweets (e.g. your application is sending as part of a larger action), then doing it in the background is definitely the way to go.

    Resque is great and jobs are really lightweight, so you could a quick integration to process these in the background pretty quickly.

    # app/jobs/send_tweet.rb
    class SendTweet
      @queue = :tweets
    
      def self.perform(user_id, content)
        user = User.find(user_id)
        # send Tweet
      end
    end
    
    # app/controllers/tweet_controller.rb
    def create
      # assuming some things here, like validation and a `current_user` method
      Resque.enqueue(SendTweet, current_user.id, params[:tweet][:message])
      redirect_to :index
    end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've made a twitter-like web app. Users can follow one another when viewing eachother's
I am building a high volume Twitter streaming application. I want to store the
We currently have a high traffic web site, so are relatively comfortable with web
High level: I am trying to build a console app (e.g. ConsoleApp.exe) which can
The high level design of my app consists of the App Delegate being the
What are examples of high volume apps running atop of Google app engine?
High Level With StructureMap, Can I define a assembly scan rule that for an
High Water Mark (HWM) for a table in an Oracle Database is the line
The high level problem we're having is this. We've got Apache Wave installed and
I have searched high and low for documentation on how to use this feature.

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.