Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Is there an overhead in RemoteEndpoint.Async versus RemoteEndpoint.Basic?

 
Christian Wansart
Ranch Hand
Posts: 32
Firefox Browser Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am working on a project with a WebSocket connection. Currently I call Session.getBasicRemote().sendText(String) for answering requests. So far it works, but I was thinking about using RemoteEndpoint.Async for them. Most of the request will do fine when they are asynchronous.

But I was wondering, will this thread creating produce an unnecessary overhead? The typical length of a message is around 50-80 characters long. Soo.... What do you think? Will there be any benefits of using RemoteEndpoint.Async instead of RemoteEndpoint.Basic?

Thanks!
 
It's weird that we cook bacon and bake cookies. Eat this tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!