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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:49:50+00:00 2026-05-27T10:49:50+00:00

I have a legacy app(HTTP and raw TCP) that uses traditional BIO (blocking IO)

  • 0

I have a legacy app(HTTP and raw TCP) that uses traditional BIO (blocking IO) and I’d like to start replacing it with Netty.

How does Netty work with traditional BIO clients? Are there any issues if I first replace the server component with Netty and leave the BIO clients in place?

Additionally, can a Netty built server replace a typical HTTP Web Server intended to server Browser clients? Any issues there?

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-27T10:49:51+00:00Added an answer on May 27, 2026 at 10:49 am

    My understanding is that netty supports blocking (org.jboss.netty.channel.socket.oio) and non blocking (org.jboss.netty.channel.socket.nio) operations. See http://docs.jboss.org/netty/3.2/guide/html/architecture.html section 2.2.

    It is easy to switch between blocking and non-blocking so you can try with NIO and if that does not with with your clients, you can switch to OIO. You set the type of IO you wish to support with you setup to ChannelFactory

    // NIO - non blocking
    ChannelFactory factory =
            new NioSeverSocketChannelFactory(
                    Executors.newCachedThreadPool(),
                    Executors.newCachedThreadPool());
    
    //OIO - blocking
    ChannelFactory factory =
            new OioServerSocketChannelFactory(
                    Executors.newCachedThreadPool(),
                    Executors.newCachedThreadPool());
    

    There are a number existing netty based HTTP web server/framework already implemented. For example, webbit, xitrum and play framework. I’m sure there are more. These are just the ones I can think of off the top of my head.

    If you wish to implement your own, a good starting point is the examples in the org.jboss.netty.example.http package.

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

Sidebar

Related Questions

I have a legacy app that seems to be exporting/saving files with CArchive (legacy
I have a legacy PHP/MySQL app that calls mysql_connect(). Tons of existing downstream code
I have a legacy Java (not my native language) app that I'm trying to
We have a legacy application that has a class like this : public class
I have a legacy app that can display crystal reports to the user, using
I have a legacy web app that I am maintaining. It started out as
In a legacy app we have a single winform that locks up while executing
I have a legacy (solve this problem for us issue) app that communicates with
I have a legacy app that was built entirely in jQuery and HTML. Does
I have an MFC legacy app that I help to maintain. I'm not quite

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.