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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T09:39:39+00:00 2026-06-13T09:39:39+00:00

BACKGROUND: I have application server logic that hosts stateful object instances. I plan to

  • 0

BACKGROUND:
I have application server logic that hosts stateful object instances. I plan to have multiple servers – each hosting stateful object instances. NOTE: this is not a cluster with the same objects mirrored, but more of a federated model.

Each instance of my application server is using Netty and supports HTTP and WebSockets.

I wish to use the Netty WebSocket plumbing as the communication layer for not only server_1/server_2, but also for server_1/object_A talking to server_2/object_X.

For Example:

  • Server_1 has objects {OA, OB, OC} and Server_2 has objects {OX, OY, OZ}
  • S1:OA could communicate with S2:OX
  • S1:OB could also communicate with S2:OX

QUESTION (s):

  • 1) Is there a recommended approach to communicate between objects running in different servers using Netty? Are there any examples?
  • 2) Should I cache the Channel between servers and funnel all object-object requests over that? Is this thread-safe?
  • 3) OR, should I use separate Channels for server and object level communication – dynamically creating/destroying them as needed?

From a network utilization standpoint, I would think option #2 would be preferred for all bi-directional communication between Server_1 and Server_2.

If you need any clarification or more details, please don’t hesitate to ask.

  • 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-13T09:39:40+00:00Added an answer on June 13, 2026 at 9:39 am

    If you want to send over Java classes I would recommend to use the marshalling encoder/decoder that ships with Netty[1].

    To your other question, all operations on a Channel are Thread-safe.

    [1] https://github.com/netty/netty/tree/3/src/main/java/org/jboss/netty/handler/codec/marshalling

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

Sidebar

Related Questions

Background: We have a client/server application that uses a persistent connection to the server.
Background: I have written a java swing based client server application. The server is
Background: I have an application with athletes, each of these athletes (Athlete model) can
Background: I have an application that, when installed, generates a random identifier (AppId). When
Some background: we have a windows application (c#) that locate in the system try.
Background info: I have a windows application (in c#) that handles a custom file
I have a Java application that run as a background service, i.e. no GUI.
Scenario I have a background worker in my application that runs off and does
I have application that runs non stop in the background on a dedicated remote
Background: I have an application written in Delphi that uses the Borland Database Engine

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.