Page 284 - DCAP312_WEB_TECHNOLOGIES_II
P. 284

Web Technologies-II



                   Notes         given product, the approach would be to handle the update as normal, then create a cache key
                                 for all products, and one for just the product ID in question. Then use those keys to kick both
                                 objects out of cache.
                                 This approach does not require much more coding than normal, but it allows much more robust
                                 caching without the need to accept a certain threshold of stale data, nor does it require incurring
                                 the overhead of SQL Server cache invalidation.

                                 Finally, since this approach to creating cache keys results in hierarchical names, it becomes fairly
                                 easy to remove entire blocks of cache key entries by creating a partial cache key and then removing
                                 any entry within the native cache providers’ set of keys that .StartsWith(partialKey) as it were.
                                 The point is that a bit of planning and effort can help take an already powerful component of
                                 ASP.NET and make it even more robust in terms of enabling unit testing, mocking, and more
                                 powerful and robust access—all through the use of a simple wrapper.

                                                Visual C++ 2010 (known also as Visual C++ 10.0) was released on April 12,
                                                2010, and it is currently the latest stable release.

                                 Self Assessment Questions
                                    1.  ………… is the process of finding and correcting the errors in a program.
                                       (a)  Compiler                   (b)  Debugging
                                       (c)  Interpreter                (d)  None of these
                                    2.  ASP.NET is a web application framework developed by ...................
                                       (a)  Oracle                     (b)  Sun Java
                                       (c)  Microsoft                  (d)  All of these
                                    3.  Cassini is a lightweight …………… source web server.
                                       (a)  open                       (b)  close
                                       (c)  both of (a) and (b)        (d)  curve
                                    4.  Performance  profiling  is  a  ...................  process  that  requires  developers  to  run  through
                                      repeated iterations of profiling and optimization.
                                       (a)  strategic                  (b)  easy
                                       (c)  raw                        (d)  complicated
                                 True or False
                                    5.  Optimization is the act of improving a method or design.
                                       (a)  True                       (b)  False

                                 14.3 Optimizing via Performance Profiling

                                 Performance profiling is a complicated process that requires developers to run through repeated
                                 iterations of profiling and optimization. There are a number of factors affecting performance
                                 that operate independently and so must be tackled independently, often by different groups
                                 of people. Developers must tackle application coding issues by identifying the offending code
                                 blocks and then rewriting or optimizing them. System administrators must tackle server resource
                                 problems by examining the full set of tasks that the server is handling. Performance profiling
                                 has to be a cooperative task between different groups of people because at the end of the day,
                                 a user who experiences slow performance will be unhappy with the experience, regardless of
                                 whose piece of the puzzle is causing the issue. Performance profiling affects everyone on the
                                 technical team, and so it must engage everyone as well.





        278                               LOVELY PROFESSIONAL UNIVERSITY
   279   280   281   282   283   284   285   286   287   288   289