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 3400342
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T04:52:52+00:00 2026-05-18T04:52:52+00:00

Firstly let me mention that I’m new to web-frameworks. I have to write my

  • 0

Firstly let me mention that I’m new to web-frameworks.

I have to write my first web-app for a Uni project. I spent two weeks learning Grails and Django. Started working with Rails yesterday and loved it. So I’ve decided to go with it and discard my work in the other frameworks.

About the app
It’s supposed to be a Twitter app that utilizes Twitter’s Streaming API to record tweets which match a set of specified filters. (I’m going to use the Tweetstream gem which takes care of connecting to Twitter and capturing matching tweets).

The app’s web interface should have the following functionality –

  • Creating new requests
    The user inputs a set of filter parameters (keywords to track) & URL/username/password of an existing PostgreSQL or MySQL database.

    When a request is created, the web-app spawns a background ruby process. This process connects to Twitter via the Tweetstream gem. It also connects to the database specified by the user to stores received tweets.

  • View/terminate of existing requests
    The user should be able to see a list of requests that are running as background processes by visiting a URL such as /listRequests.

  • See further details about a process/terminate the process

    The user should be able to go to URL such as /requests/1/detail to view some details (e.g how long request has been running, number of tweets captured, etc). The user should also be able to terminate the process.

My inexperience is showing as I’m unable to comprehend –

  • what my models should be (maybe Request should be a model. Tweet doesn’t need to be a model as it’s not being stored locally)
  • how I’m going to connect to remote databases.
  • how I can create background processes (backgroundrb??) and associate them with request objects so that I can terminate then when the user asks.

    At the end of the day, I’ve got to build this myself, so I’m not asking for you to design this for me. But some pointers in the right direction would be extremely helpful and appreciated!

    Thanks!

    • 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-18T04:52:53+00:00Added an answer on May 18, 2026 at 4:52 am

      Hmm.

      Since the web app is just a thin wrapper around the heavy-lifting processes, it might be more appropriate to just use something like Sinatra here. Rails is a big framework that pulls in lots of stuff that you won’t need for this project, even though it will work.

      Does the “background process” requirement here strictly mean a separate process, or does it just mean concurrency? TweetStream uses the EventMachine gem to handle updates as they come, which uses a separate thread for each connection. It would be quite possible to spawn the TweetStream clients from a simple Sinatra web app, keep them in a big array, have them all run concurrently with no trouble, and simply run stop on a given client when you want it to stop. No need for a database or anything.

      I’m not sure exactly what your prof is looking for you to do here, but MVC doesn’t really fit. It’s better to work with the requirements than to mush it into a design pattern that doesn’t match it :/

      Even so, I <3 Rails! Definitely get on that when you’re working primarily with objects being represented in a database 🙂

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

    Sidebar

    Related Questions

    Firstly, let me just say that I'm very new to JSR-170 and Jackrabbit/Lucene in
    We have just installed/configured a new web server to replace our out-of-date one. Let's
    Firstly, let me start by saying that I haven't ever directly used SQL views.
    Firstly, let me say that I've been searching the Internet, rewriting scripts and I
    Firstly, let me introduce general architecture of a project. It is hierarchical. We develop
    Firstly, let me say that I've been on this issue for pretty much 2
    Let's say I have some email: some_email@yahoo.com . Firstly I would want to remove
    Firstly, what i am trying to do is have a page that users can
    Firstly, let me say that I know that http://sphinxsearch.com/docs/current.html#conf-sql-attr-string says strings can only be
    Firstly, let me set out what I'd like to do. Assume I have three

    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.