On Sat, Nov 19, 2011 at 9:20 PM, jlazeraski
<supreme_java_gur...@yahoo.com> wrote:
> Hey Jeremy, thanks for the info.
>
> I am having a hard time seeing how Wicket uses less memory if for each
> user/page it keeps a DOM tree of objects in memory + any model data for that
> page.. where at least in my struts2 apps, there is nothing in memory on the
> server side.. only when a request comes in do I load some data, then send it
> back as part of the response. The memory is then GC'd at some point by JVM..
> but there is no object tree or anything else related to the user, page they
> are on, etc in memory at all. So I am not sure how Wicket can use comparable
> if not less memory when the struts/mvc way with a stateless request flow
> uses pretty much no memory.

while struts 2 does not put anything into session, you as a developer
eventually will because there will eventually be a page that is too
complex to manage by passing data via urls. why spend two days
rewiring a bunch of code to add more url parameters for a new page
feature when you can just stick it into session and call it a day,
right? what if the data is too long to fit in a url and you cant use a
POST? this has eventually happened in every web-project ive worked on
that used jsps or mvc-type frameworks, and ive worked on a lot of them
before i found Wicket. and no, it wasnt just me sticking things into
session :)

you may think that this is still less data then a Wicket page, and per
particular usecase you are probably right. but, once you add up all
the state that developers start sticking into session eventually it is
going to get very large.

why Wicket eventually wins out is because it manages state like this.
Wicket is like a garbage collector for your session. so even though it
has a higher session size out of the door, in the long run it actually
ends up saving you that size.

of course this is just my experience...

-igor


>
> One day, if a startup I work at takes off and I make enough mula to not have
> to work, I would love to write an app in spring, struts, wicket, couple
> others.. and compare the details and differences.
>
>
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Apache-Wicket-is-a-Flawed-Framework-tp4080411p4087996.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to