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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T14:36:22+00:00 2026-06-12T14:36:22+00:00

I am building a Java application for a basic online, collaborative IDE. In this

  • 0

I am building a Java application for a basic online, collaborative IDE. In this application, clients send commands to a server that serializes these commands and then returns the results to each client. I am trying to determine the architectural style that will maximize performance, efficiency, and simplicity of code.

Currently, I am using a sort of hybrid between a client-server model and a publish-subscribe model. Clients sends commands (i.e. requests to edit code, remote compile, etc.) to the server. For a specific client command, the files on the client-side are not actually changed until the server responds to the command. Since one of the major goals of the project is that the IDE allow real-time colloboration, client commands are sent for each keystroke that is entered. This is the client-server aspect.

However, since clients must also receive events relayed to them from other clients, it is not a pure client-server setup. I’m using the ExecutorService class to implement this publish-subscribe behavior.

My question is – is there a specific architectural style that corresponds to an application such as this? Is there another approach that I can take that accomplishes the application goals? Or, perhaps, am I already using the best architectural style?

  • 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-06-12T14:36:23+00:00Added an answer on June 12, 2026 at 2:36 pm

    Blended styles are common in complex systems. The most important thing is to make sure that the quality attributes promoted by the styles used complement one another and do not create tension. Tension created would, obviously, need to be addressed.

    There seems to be a hidden quality attribute, “files on the client-side are not actually changed until the server responds to the command” which indicates why you chose to use a call-return style in addition to publish-subscribe. I do worry about having a blocking call here for performance, but you also need to worry about data integrity issues.

    Thinking about this a little, it seems like you might be able to use a pure publish-subscribe style with the right set of messages.

    In terms of “the right style to use” — focus on your quality attributes and be specific about what is promoted and inhibited by your design decisions. Based on what you’ve written here, I think there are some additional scenarios that need to be fleshed out to really make a strong case for one style over another right now.

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

Sidebar

Related Questions

I'm building a large Java application that uses multiple pop-up windows. Some of these
I'm building a Java application that has parts that require daily update. I want
I am building a Java SE application that is powered by Hibernate. Mainly many
I'm currently working on a project that is building a java-based desktop application to
I'm building a java application that gets the mac addresses of a user and
I am currently building a java-servlet-based web application that should offer its service to
I'm building a Java application with a Swing GUI and a task that takes
I'm building a Java application that will allow our users to load a list
So I have this extremely memory-intensive Java application I'm building, which builds a tree
I am building a Java application that programatically generates a MIDI Sequence that is

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.