• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Session Management Performance

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
I am studying for my SCWCD exam and was wondering if there was any way around the performance problems introduced by URL rewriting?
Thanks
Ben
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ben, you say that URL rewriting introduces performance problems. Personally, I don't see any bottleneck in this alternative to cookies. Can you please tell us your vision, may be some facts.
 
author
Posts: 3252
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I wouldn't say that there are any serious performance implication to URL rewriting -- because most of the time, you don't. If the client supports cookies (which will be 99% of the time) then HttpServletResponse.encodeURL() will return your url String unchanged, with no object creation and little overhead.
- Peter
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Peter den Haan:
I wouldn't say that there are any serious performance implication to URL rewriting -- because most of the time, you don't.


Even if you actually do, why would there be a serious performance hit?
 
Peter den Haan
author
Posts: 3252
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You're right, there probably isn't, unless you have a lot of URLs on your pages; I guess that could give a fair bit of object churn.
- Peter
 
Author
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The design doesn't have any inherent bottleneck. I've learned through years of experience not to anticipate implementation bottlenecks. You usually anticipate the wrong one.
There are always situations where almost anything can become a bottleneck depending on the implementation, the load and the configuration.
--Jack Shirazi
JavaPerformanceTuning.com
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic