Wrox Programmer Forums
|
BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0
This is the forum to discuss the Wrox book ASP.NET 2.0 Website Programming: Problem - Design - Solution by Marco Bellinaso; ISBN: 9780764584640
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 1st, 2007, 05:34 PM
Registered User
 
Join Date: Jul 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Cache Mechanism in Different IIS / FE - BO

Hello ALl,
I've found the cache mechanism in this book quite good but can someone tell me if it could work on different IIS. I Have 2 IIS, one for the BackOffice Admin and other for the Site. Imagine i update some article in BackOffice ... normally it will purge this item ID from cache. How would the FrontEnd that it's on another IIS will know that the item was purged from cache so it my be able to get the newest item version ?
Tks a lot for any feedback.
Pedro Bernardo
http://www.inbox.pt

 
Old July 1st, 2007, 10:08 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You could use ADO.NET SQL cache dependencies. That can keep the 2 servers in sync. It's a pain to set it up, so I'd advise you to make sure you really need 2 servers. I always try to avoid 2 servers unless they're set up in a farm configuration for load balancing.

Eric

 
Old July 2nd, 2007, 05:12 AM
Registered User
 
Join Date: Jul 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Indeed, i'm using a WEBFarm for the FrontEnd Site with 2 WebServers and i have the backoffice on another Network only available to the local users and using another WebServer. They both use the same DB.
So Eric let me just clarify things here
1. The Cache Configuration used in this book doesn't fit in this scenario
2. The cache mechanism to use in this kind of scenario is the ADO.NET SQL cache dependencies
Correct ?
(I really like that Purge based cache mechanism..)
Pedro Bernardo
http://www.inbox.pt

 
Old July 5th, 2007, 01:08 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Right on both counts. That's a messy setup that will take a lot of work to make it bullet-proof. I really think you should have only 1 farm and use security profiles to control backoffice access as needed.

Why do you need a whole different server for the back office? Can't you open port 80 and 443 between these network zones? Most companies do. A simple Ethernet switch or router can save a ton of coding work. Maybe you already have a switch or router that just needs to be configured?

Eric

 
Old July 10th, 2007, 06:24 AM
Registered User
 
Join Date: Jul 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Imagine i pass the Backoffice to the Farm where the FrontEnd Site is. I would still have the problem with the caches because i would still have 2 webservers in the farm ? Right ? ...or maybe not...

 
Old July 10th, 2007, 11:36 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

There's nothing wrong with 2 webservers as long as they are set up in a farm configuration. They can share the same DB with a short-term cache. It's understood that the other webserver might have old data for a few seconds after an update. Unless this is used for financial or e-commerce it shouldn't matter much. Servers in a farm need to be configured identically and need to use out of process session state, normally via the Windows state service.

Eric

 
Old August 3rd, 2007, 01:05 PM
Registered User
 
Join Date: Jul 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok Eric Tks,
Tell me one more thing. We are using a count mecanism in the articles where we can see which article as been more viewed. If we use the cache mechanism how can we know for sure how many views has a specific article if most of the times is the cache iis mecanism that responds to the client.
Tks again
PB






Similar Threads
Thread Thread Starter Forum Replies Last Post
Newsletter Mechanism vivek_inos ASP.NET 1.0 and 1.1 Professional 1 September 22nd, 2007 07:38 AM
Arraylist mechanism anwarraja Pro Java 1 September 6th, 2007 11:54 AM
dbo qualifier issue (sql2005 BE with Access FE) gvcooper SQL Server 2005 2 July 24th, 2006 01:13 AM
Calling Crystal report from BO XI server using ASP raajnselliah Crystal Reports 0 February 6th, 2006 09:31 AM
ASP cache & IIS setting kalunalan Classic ASP Basics 2 February 25th, 2004 10:52 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.