[Ginp-developers] Scalability and PicCollections
Brought to you by:
burchbri,
dougculnane
From: Justin <ju...@sq...> - 2005-02-27 23:00:00
|
Doug, I was looking through the Ginp sourcecode and I saw that a major scalability issue is that the PicCollections are loaded for each session that looks at them and then serialized and loaded on each web request. The best fix here is to use the flyweight pattern: http://www.dofactory.com/Patterns/PatternFlyweight.aspx So we have ONE in memory collection of pics that all sessions use and their extrinsicState (The customization for each user) is passed into them from the client request for each operation. This is probably good to do at the same time as the database integration. I'll be taking a look at this today. In the meantime I did a bit of work on the GinpServlet today. Regards, Justin |