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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T22:08:42+00:00 2026-06-09T22:08:42+00:00

Some background: I working on some java packages that need to take data, divide

  • 0

Some background:

I working on some java packages that need to take data, divide it and distribute to many Servers online. According to the user code (person using my packages), I will know which kind of buffer to use. I have seen The Netty Project that has some interesting concepts in mind and other solutions suggested here in the site, but not exactly what I’m looking for. I guess I can implement my requirements, but I like reusing better.

The actual Issue: Byte Buffer Requirements

Separate implementation from interface.
Change between the two implementation.

Fixed Size:

  1. Direct memory usage.
  2. Zero Copy IO on distribution.

Growing Size

  1. Can grow to up to a certain Size.
  2. Keeps balance between reallocation and amount of memory in use.

Update 1: Decided to go with the Netty project library due to a lot of other benefits.

I wanted to give some details about my system. I need to distribute large amounts of data throughout a network of servers. I have very low amount of knowledge regarding the size of my buffers. Sometimes it can be fixed sizes, sometimes it can be in unknown size mode. I want to be able to develop a mechanism that enjoys the benefit of both worlds. I do have a defined event when I receive the final buffer for inspection.

I understand that buffers can perform better when they are directly mapped to memory. Netty provides this for me, but I can’t make this buffer grow. I have dynamic buffer which can grow -Netty provides that too.

Couple of questions:

  1. should I copy the buffer to from dynamic to direct in case it is changed? Is there a way to switch modes?

  2. What do you think of implementing a class that holds an array of ChannleBuffers and exposes the same interface like ChannleBuffer while containing “inside” an array of buffers allocating new direct memory as needed.

  3. Do you have other solutions in mind ?

  • 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-09T22:08:44+00:00Added an answer on June 9, 2026 at 10:08 pm

    I found out that Netty supplied me with all the things I need and more.

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

Sidebar

Related Questions

Some background. I am currently working on a distributed system in Java. The code
First some background: I'm working on an application and I'm trying to follow MVVM
Some background I'm currently working on a mobile site so I keep switching user
I have one AlertDialog which is working fine.I have set some background images to
Some historic background: I'm currently working with Wowza and attempting to decode the AMFPackets
Long-Winded Background I'm working on parallelising some code for cardiac electrophysiology simulations. Since users
Here is some background to the problem. We are working with an EyeVis wall
I come from a java background, but I'm working on a django-based website. To
Little bit of background, I'm more experienced with Java, and have some C/C++ experience.
Background I am working with functions which which passes arguments as pointers. I need

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.