PageFlow using Page Modules
A few weeks ago Paulo posted about a new concept he called a “Page Module”. Page Modules are similar to HTTP modules however they allow you to additionally handle any event in the Page lifecycle including it’s creation and release. With a Page Module you actually get a reference to the newly created page in the PageCreated and PageReleasing event arguments.
By using Page Modules, you you can reduce the server load by utilizing Server.Transfer and Server.Execute rather than doing Response.Redirects. This provides benefits for example when using PageFlow which currently relies on client redirects for state transitions. Recently Paulo showed us how to do just that in this post. He’s implemented the Page Flow Store Quickstart using a Page Module. The results are pretty impressive with almost a
4x 2x improvement in response time. See the comparison below.
|Page Flow Store using HTTP Module||Page Flow Store using|