Results 1 to 2 of 2
  1. #1
    MyTimeFinder is offline Member
    Join Date
    Dec 2011
    Rep Power

    Question Proposed use of Java to enhance architecture -- sanity check please

    I am relatively new to Java, though not to programming in general. I have an application currently with an front end and ms/sql back end that I would like to enhance with Java. My question is whether as a general concept this would be an appropriate use of Java? Looking for a sanity check.

    The problem:

    I manage a web app where many concurrent users access relatively few records from a SQL database and then do a significant amount of manipulation of those records. In general my users access between 10 and 50 records at any one time with approximately 20 fields. In database terms this is tiny. However, each record is then manipulated by a series of stored procedures that evaluates, sorts, updates, etc., fields within each record. All that manipulation is happening within MS-SQL via stored procedures on the server. This is a problem for two reasons:

    1) stored procedures are unbelievably inefficient users of CPU cycles. A computer rendering in real time amazing 3d graphics or analyzing sound and manipulating it in real time is getting bogged down by a few thousand lines of stored procedure code. Our server is bogging down with very few users. The problem is approaching critical for us.

    2) having the "thinking" happen in SQL ties us to MS-SQL. We want the freedom to move to other databases or apply our algorithms in other situations.

    The proposed solution:

    What I would like to do is replicate the stored procedures in a Java web app that runs on the client's computer. Ideally, the Java app would:

    a) be downloaded onto the client's computer only as needed (i.e. returning clients would not have to re-download every time they access the database).
    b) The Java app would be transparent to the user. The user would access the database through our web portal application and never know that the "thinking" was happening on their local computer.
    c) A call for data would be made through the web portal that would invoke the java web app.
    d) The Java app would pull the raw data from the SQL database into a local array and then apply the various algorithms to update selected fields (and even add new fields to each record).
    d) Finally, the Java app would return to the call the now manipulated array.

    The benefits we anticipate:

    We believe that since cpu rather than bandwidth is causing us problem that we can solve that problem by making the data manipulation happen on the client side through a Java app. We think this would speed up significantly our procedures and allow for more concurrent users. We also believe Java is the appropriate vehicle because client side scripts are compiled on the fly and that makes our proprietary processes available to all and greatly slows down the system.

    So my question is basically a sanity check from the experienced Java community. Are there any assumptions in what I have laid out that are obviously wrong? For example, is there some reason an web portal cannot invoke a Java web app to retrieve data from a MS SQL database? Can a java web app be used to manipulate records retrieved from SQL and deliver the results to the web portal? Is there anything about the Java architecture I am missing that would negate any performance improvements of moving the data manipulation to the client? Am I correct that a compiled small footprint app is what is downloaded by the server in a Java web app? Can anyone suggest sample code (from an open source project, etc.) as an example?


  2. #2
    MyTimeFinder is offline Member
    Join Date
    Dec 2011
    Rep Power

    Default Re: Proposed use of Java to enhance architecture -- sanity check please

    I am going to cross post this to the Advanced Java to see if I can get a response from there.

    Moderators: please let me know if you would rather I not cross post.


Similar Threads

  1. DB Sanity 0.9.1
    By java software in forum Java Software
    Replies: 0
    Last Post: 11-23-2011, 06:17 PM
  2. DB Sanity 0.8.4
    By java software in forum Java Software
    Replies: 0
    Last Post: 10-22-2011, 07:54 PM
  3. Replies: 4
    Last Post: 07-19-2011, 05:33 PM
  4. java connection to mssql
    By gerard kowara in forum JDBC
    Replies: 9
    Last Post: 10-14-2010, 09:07 AM
  5. Replies: 3
    Last Post: 04-09-2010, 04:06 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts