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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T01:57:51+00:00 2026-05-14T01:57:51+00:00

I am developing a chat website using jsp/servlet.I will be hosting my website on

  • 0

I am developing a chat website using jsp/servlet.I will be hosting my website on gooogle appengine .Now i have some doubts regarding whether to use server push or client pull technology

1)If i use server push and if i dont close the response of servlet will it cause the server to go slow?How many simultanious connection can a tyicall tomcat server can handle if i keep the socket open for the entire chat session between 2 clinets??

2)Will server push or clinet push be better??

  • 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-14T01:57:51+00:00Added an answer on May 14, 2026 at 1:57 am

    If you are using a servlet (prior to 3.0), then I guess you’ll have to go with pull because of the programming model of servlet. However, there ARE advantages in using a push model. Primarily, wasted load on server and the limitation in latency. That’s why there are technologies such as comet. Servlet 3.0 also supports push model. These are commonly used in ajax based apps.

    In fact I believe a push model is more suited for a chatting app. because of the fast response time (=better user experience) it can provide.

    If you use a nio based implementation for push-model, you can support thousands or even more than 10k concurrent connections (obviously, your millage varies).

    If you use a conventional IO based implementation, it will be likely in the range of hundreds of concurrent connections (don’t take this estimation too seriously though. I’m just giving these numbers to give a very, very rough feeling).

    As for tomcat, last time I checked, people were saying that it won’t have a good push-model support until version 7.0. But I’m not following the current status so I’m not sure (Sorry, perhaps somebody else can help you on this). If that is the case, you might want to check out comet support of jetty.

    grizzly and netty are also good NIO based network frameworks, but if you want to use JSP, and find that tomcat is not sufficient, I guess jetty would be the best bet.

    edit: (some additional info)
    In this “push models”, it’s not like the server opens a connection to the client. The connection will be kept alive, and the server will push messages as it sees fit.

    Also, it’s not like there are only “push” and “pull” models. You can have a hybrid, like long polling.

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

Sidebar

Related Questions

i am developing chat related similar application i am using backgrouund synchronous class some
I'm developing a chat application in java using DatagramSocket and DatagramPacket . The data
Hi all i am developing a chat application ... i have multiple chat windows
I am using libpurple (libpurple.com) for developing a chat application. Everything works fine on
I am developing an application in asp.net mvc where i need to have Chat
I am developing a chat application. And i want to have pop up window
I m developing an Android chat application where in user will be provided with
I am developing a chat application.Here for chat i have used ListView . I
I am developing a chat application. But Right now chatting is possible with only
I am developing a chat application for Android, using AIR/Flex and Red5. But Acoustic

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.