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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T16:28:27+00:00 2026-06-14T16:28:27+00:00

I have a Netty client sending messages asynchronously to a TCP Netty server. In

  • 0

I have a Netty client sending messages asynchronously to a TCP Netty server.

In order to preserve the order the server ChannelPipeline has and ExecutionHandler coupled with an OrderedMemoryAwareThreadPoolExecutor.

My understanding is messages sent to the server are queued up in the channel. If the server dies while messages queued up in the channel I need to prevent message loss.

My current solution is to add each message to a queue on the Client side and only remove them from the queue when I receive an Ack message from the server for each message. What do you think?

  • 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-14T16:28:28+00:00Added an answer on June 14, 2026 at 4:28 pm

    What you’re suggesting is fairly common and is sometimes known as a send window. I’ve used similar techniques before, although I stored my sent messages in a map because the server could theoretically process and acknowledge them out of order.

    TCP uses similar techniques, as do protocols like SMPP and even JMS providers that allow asynchronous sends (hornetQ for example). HTTP pipelining is similar, although that does require requests to be processed and acknowledged in order.

    One thing you have to consider is what the server does with retransmitted messages. It may have already processed the original message but the ack was lost before it reached your client. For example, if the messages are requesting a payment of some kind, you don’t want to charge the person twice because the ack got lost.

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

Sidebar

Related Questions

I'm planning to use Netty to design a TCP Server. When the client connects,
I have made an client - server example using netty. I have defined handlers
I have a Netty TCP server, and I want to reject/refuse incoming connection attempts
I have some questions about Netty (Server Side), TCP/IP applications; I am wondering if
I have a written a very simple UDP Server using Netty - it quite
I have an mp3 encoding server running on Ubuntu (natty). This has been working
I am writing a netty client and server application that will write JVM GC
I have a network server that was implemented using Jboss Netty. It servers the
I have a Camel application that communicates with a remote server over TCP using
I have a TCP based Netty application with multiple clients that need to communicate

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.