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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T15:45:56+00:00 2026-05-19T15:45:56+00:00

I am writing a distributed Java application that will make heavy use of networking,

  • 0

I am writing a distributed Java application that will make heavy use of networking, and that needs to be fast.

Let’s pretend that I have a class called Widget. Widgets are created client-side (most likely a Swing box) but will need to be persisted server-side and shared/distributed amongst all the other connected clients. So, I need a way to serialize Widget instances, send them to the server, where the server will manage them and update all connected clients with state changes in the Widgets they are interested in. (So, once a Widget is created and sent server-side, it can theoretically be “pulled down” and modified by any other client.

Performance is a must, so this must be a binary protocol. Also would prefer non-blocking sockets, and something that is very, very scalable.

So I’m looking at RMI, NIO and Netty as feasible solutions. If I understand Java networking correctly, then everything seems to indicate the RMI is considerably slower than NIO. I’ve also heard RMI is lacking in the scalability department. NIO on the other hand, gives you more flexibility and thus is considerably more complicated. Netty seems to have the best documentation, but seems slower than NIO and may not be capable of what I really need it to do.

For Widget distribution, I’m simply looking for the ability to send Widgets over a network, and fast. Don’t care what protocols are used.

Anyone care to share their thoughts/input?

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-19T15:45:57+00:00Added an answer on May 19, 2026 at 3:45 pm

    You mentioned Netty. I would second that. My experience with Netty was great. It’s a very efficient library with solid documentation and flexibility.

    It can do anything you can imagine with binary protocols, yet it only does what you need, so it’s lightweight. It also scales very well. I’ve successfully load tested a single server with a simple job sustaining over 10k+ request/sec for 200-300 concurrent clients. That was on a fairly standard rack server.

    There is a bit of a learning curve, but the javadoc is some of the best I’ve seen for dealing with that hurdle. The project is in active development, and the lead on the project is extremely responsive to questions and defects.

    EDIT: For fast transfer of Widgets, you could look into Protocol Buffers. They are pretty efficient for serializing/de-serializing objects over the wire.

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

Sidebar

Related Questions

I'm writing a simple distributed java rmi application and I have a bunch of
I've got a Java application that I'm writing an installer for. We're using the
I'm writing a library that needs to have some code if a particular library
I am developing a Java Desktop Application but have some confusions in choosing a
I'm writing a daemon in Java that takes in requests from multiple providers in
Writing a JSP page, what exactly does the <c:out> do? I've noticed that the
Writing my first Linq application, and I'm trying to find the best way to
I writing a report in Visual Studio that takes a user input parameter and
When writing production-quality VC++ code, is the use of recursion acceptable? Why or why
Alright. So I have a very large amount of binary data (let's say, 10GB)

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.