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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:40:33+00:00 2026-05-28T06:40:33+00:00

I had a hard time framing that question. I hope it gets the gist

  • 0

I had a hard time framing that question. I hope it gets the gist of my idea across.

So just to state a few points before you decide to answer. this is a project I am doing for school and it is my own idea and proposal.I am NOT looking for code. I want to hear ideas to architect a system. This thread is more of a discussion than a simple answer. So any and all input is welcome. I will be developing this application over three months and I am using the internet to brainstorm.

So the system consists of several mobile devices and a controller device. the controller sends questions that each mobile device receives. they answer it; the controller gets to see statistics in real-time on their phone or desktop. the mobile devices can join the controller’s session to be able to interact.

In Java EE, I can store the controller device data in the ServletContext and the mobile device sessions can add themselves to the controller device’s data_space in the ServletContext. This way the controller knows who is logged in and it can retrieve the responses of the other mobiled devices. The problem here is the issue with multi-threading as the ServletContext is not threadsafe and Sessions are all multiple threads. There is also the issue where I think this is a not a good design choice. In fact, I feel this is the most straightforward but wrong design choice to make. I would like to hear possible ideas to architect a system to deal with this kind of communication.

Also, would this problem be best solved by using the database? Would such a database centered approach affect the speed of the application? also, am I right in thinking that the database will have no problem dealing with multiple threads since it is a serial pipeline. Database in question MySQL. I am thinking of creating a unique VIEW that will be alive for the lifetime of the controller’s session. the mobile devices can get the controller’s unique VIEW by checking with the ServletContext and then adding themselves to the View and manipulating data in there. Is this a decent approach to the problem?

thanks for looking. 🙂

  • 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-28T06:40:34+00:00Added an answer on May 28, 2026 at 6:40 am

    Good discussion.

    I think that the best solution is to use a database. You should use the MVC Model View Controller pattern. In this case mobile devices will be clients which comunicates with a controller (Java EE servlet) through an http connection.

    The servlet will handle the database. If a database is hosted in the same server that a Java EE application is deployed, your speed will be very good.

    I don’t really understand what you are you thinking on doing with the VIEW, if you explain me better we could continue the discussion with that point.

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

Sidebar

Related Questions

I had a hard time phrasing my question's title. Basically here's the problem: I've
I had a hard time coming up with a title for this question, but
I had a hard time trying to word my question properly, so i'm sorry
Please forgive the awkward title. I had a hard time distilling my question into
I asked this question before, but had a hard time showing which edits I
This might be a simple question, but I've had a hard time pinning down
I had a hard time coming up with a title, so I hope this
I had a hard time debugging a crash on production. Just wanted to confirm
I've just had a hard time finding a bug in my PHP code described
I've had a hard time trying to find good examples of how to manage

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.