Presentation is loading. Please wait.

Presentation is loading. Please wait.

Marc Ségura-Devillechaise – Jean-Marc Menaud Caching Web Services: Aspect Orientation To The Rescue Caching Web Services: Aspect Orientation To The Rescue.

Similar presentations


Presentation on theme: "Marc Ségura-Devillechaise – Jean-Marc Menaud Caching Web Services: Aspect Orientation To The Rescue Caching Web Services: Aspect Orientation To The Rescue."— Presentation transcript:

1 Marc Ségura-Devillechaise – Jean-Marc Menaud Caching Web Services: Aspect Orientation To The Rescue Caching Web Services: Aspect Orientation To The Rescue Web Engineering – Networking 2002 Marc Ségura-Devillechaise – Jean-Marc Menaud

2 Marc Ségura-Devillechaise – Jean-Marc Menaud Caching Web Services: Aspect Orientation To The Rescue Trends in using the Web Cache principles Trends in content providing Existing solutions The problem Modularisation… our experience A possible solution: A.O.P. Experiments Conclusion Trends in using the Web Cache principles Trends in content providing Existing solutions The problem Modularisation… our experience A possible solution: A.O.P. Experiments Conclusion Outline What is it about?

3 Marc Ségura-Devillechaise – Jean-Marc Menaud Caching Web Services: Aspect Orientation To The Rescue Trends in using the Web Globally: Growing number of Web users Each user is consuming more and more bandwidth Why caches are interesting? Trends in using the Web Cache principles Trends in content providing Existing solutions The problem Modularisation… our experience A possible solution: A.O.P. Experiments Conclusion Software answers decreasing the bandwidth usage is a key point. These answers should focus on reducing the http traffic.

4 Marc Ségura-Devillechaise – Jean-Marc Menaud Caching Web Services: Aspect Orientation To The Rescue Cache principles How works a Web cache? Trends in using the Web Cache principles Trends in content providing Existing solutions The problem Modularisation… our experience A possible solution: A.O.P. Experiments Conclusion ClientCacheServer Storage Space 3? 38245895 3 382 3 3 3 5453 Storage Space 3 989

5 Marc Ségura-Devillechaise – Jean-Marc Menaud Caching Web Services: Aspect Orientation To The Rescue In 2000, studies of web traces reveals that 45% of requests are handled by C.G.I. Trends in content providing Does this model fits well with content providers? Trends in using the Web Cache principles Trends in content providing Existing solutions The problem Modularisation… our experience A possible solution: A.O.P. Experiments Conclusion The trend is: to personalize the delivered content to add behaviour to the Web pages using dynamic page generation using web services The number of cacheable documents is sharply decreasing.

6 Marc Ségura-Devillechaise – Jean-Marc Menaud Caching Web Services: Aspect Orientation To The Rescue Existing solutions Existing solutions are all assuming: That the content provider should specify the behaviour of his objects, once there are cached. This specification is done through code downloaded from the content provider. This code is finely interacting with the cache. Examples are: ActiveCache, Plugxy. Today, no solution is available? Trends in using the Web Cache principles Trends in content providing Existing solutions The problem Modularisation… our experience A possible solution: A.O.P. Experiments Conclusion

7 Marc Ségura-Devillechaise – Jean-Marc Menaud Caching Web Services: Aspect Orientation To The Rescue Existing solutions These approaches failed when the cache did not anticipate the interaction required by the code downloaded from the content provider. For example: ActiveCache parametrizes the cache behavior thorugh applets provided by the content provider. The introduction of a cooperation protocol of ActiveCache requires the alteration of how the applets are interacting. All the previously written applets need to be re-written. They do not solve the problem? Trends in using the Web Cache principles Trends in content providing Existing solutions The problem Modularisation… our experience A possible solution: A.O.P. Experiments Conclusion

8 Marc Ségura-Devillechaise – Jean-Marc Menaud Caching Web Services: Aspect Orientation To The Rescue The problem How can this failure be explained? Trends in using the Web Cache principles Trends in content providing Existing solutions The problem Modularisation… our experience A possible solution: A.O.P. Experiments Conclusion The problem arises because: The interaction between the cache and the content provider is anticipated before runtime. In ActiveCache through Applets. Traditional modularisation techniques forces to anticipate ANY interaction prior runtime. Variability in interaction is typically handled through function pointers, interfaces, modules, abstract classes… Still this interaction is a major concern of the cache. This interaction potentially cross cuts the entire cache

9 Marc Ségura-Devillechaise – Jean-Marc Menaud Caching Web Services: Aspect Orientation To The Rescue Modularisation… our experience Strange that modularisation failed… ? Trends in using the Web Cache principles Trends in content providing Existing solutions The problem Modularisation… our experience A possible solution: A.O.P. Experiments Conclusion We extended Squid with a new cooperation protocol. Squid is structured in 17 modules. It already contains a cooperation protocol. Located in 2 modules (comm and neighbors) Modifying these 2 modules should have been enough. We did NOT succeed to modularise our alterations. We altered 6 modules. A modification in 10% of the code in practice requires the alteration of 40% of the application. Squid is well designed. Its modularisation reflects the tasks it wants to achieve. Unanticipated adaptation promotes different tasks than the original ones. It is likely to cross cut the pre-existing structure.

10 Marc Ségura-Devillechaise – Jean-Marc Menaud Caching Web Services: Aspect Orientation To The Rescue A possible solution: A.O.P. And you do not have any ideas to solve this? Trends in using the Web Cache principles Trends in content providing Existing solutions The problem Modularisation… our experience A possible solution: A.O.P. Experiments Conclusion Event based A.O.P. is based on 4 elements: 1.Advices: they modify how the computation is done by the program. An advice specifies an action to be taken whenever some conditions arise in the execution. 2.An event triggering the execution of an advice is a join point. A join point is a position in the execution path of the program 3.Weaving: the process of executing the relevant advice at each join point. 4.The conditions triggering the advices execution is expressed in a predicate language over the join points. These predicates are called point cuts.

11 Marc Ségura-Devillechaise – Jean-Marc Menaud Caching Web Services: Aspect Orientation To The Rescue Experiments An experiment with AspectJ in Java: An alternative to AspectJ is AspectC (for the C language) But Java allows quicker prototyping. A cache spent most of his time in the network layer than in the cache code itself. Deceiving results: Point cuts in AspectJ are mostly statically evaluated. We are now implementing a new A.O.P extension of C#: Allows to experiment with different point cut languages. Should the point cut language be a D.S.L.? Does it works in practice? Trends in using the Web Cache principles Trends in content providing Existing solutions The problem Modularisation… our experience A possible solution: A.O.P. Experiments Conclusion

12 Marc Ségura-Devillechaise – Jean-Marc Menaud Caching Web Services: Aspect Orientation To The Rescue Conclusion Caching is important, but less and less easy to achieve. Cache should adapt, at runtime to different providers. It is unlikely that this adaptation can be reduced to a variability anticipated at runtime. Our prospective approach tries to determine if A.O.P. has the potential to support this unanticipated variability. Trends in using the Web Cache principles Trends in content providing Existing solutions The problem Modularisation… our experience A possible solution: A.O.P. Experiments Conclusion

13 Marc Ségura-Devillechaise – Jean-Marc Menaud Caching Web Services: Aspect Orientation To The Rescue Some references [Arango89] Domain Analysis from Art to engineering discipline by Arango and G May in SIGSOFT Engineering Notes vol.143 p153 1989 [Bosch00] Design and use of software architectures: adopting and evolving a product-line approach by Jan Bosch ACM Press Books, United Kingdom 2000 [Booch94] Object oriented analysis and design with applications by Grady Booch Benjamin Cummings publishing company Inc (second edition) 1994 [Dsouz98] Objects, components and frameworks with UML, the Catalysis approach by Desmond F. DSouza and Alan Cameron Wills Addison-Wesley, Reading MA, 1998 This book is known as the reference textbook on Catalysis. [Czarnecki00] Generative Programming: Methods, Tools and Applications. by K. Czarnecki and U.W. Eisenecker. Addisson-Wesley, 2000

14 Marc Ségura-Devillechaise – Jean-Marc Menaud Caching Web Services: Aspect Orientation To The Rescue Some references (contd) [Jacob97] I Software reuse: architecture, process and organization for business success by. Jacobson, M Griss, and P. Jonsson ACM Press Books Palatino, USA, 1997 This book is know as the reference textbook on RSEB. [Tekin00] Synthesis-Based Software Architecture Design: PhD thesis by Bedir Tekinerdogan, University of Twente, Enschede, The Netherlands, March 23, 2000 available on line at http://wwwhome.cs.utwente.nl/~bedir/PhDThesis/Download/Complete Thesisversion.pdf this thesis is the reference paper on the synthesis method[1]. http://wwwhome.cs.utwente.nl/~bedir/PhDThesis/Download/Complete Thesisversion.pdf[1] [Weiss99]. Software Product-Line Engineering: A Family-Based Software Development Process. by D.M Weiss and C.T.R. Lai Addisson-Wesley, Reading, MA, 1999.This book is known as the reference textbook on FAST.

15 Marc Ségura-Devillechaise – Jean-Marc Menaud Caching Web Services: Aspect Orientation To The Rescue Questions ?????? ??????


Download ppt "Marc Ségura-Devillechaise – Jean-Marc Menaud Caching Web Services: Aspect Orientation To The Rescue Caching Web Services: Aspect Orientation To The Rescue."

Similar presentations


Ads by Google