Adding Tiers

Adding Tiers

Old forum URL: forums.lhotka.net/forums/t/3111.aspx


stanc posted on Thursday, June 28, 2007

I know Rocky prefers to have the fewest number of tiers as possible, but I am finding myself having to add a tier in between the client and application server.

Here is a little background:

We are writing an application that it to be used across our WAN (several locations have poor bandwith), so I really want to implement an application server using Remoting. I still will run into issues at some of the slower locations, so I added a new channel built using Remoting and added some compression on the data portal. (Thanks xal for your help on this http://www.softwarethinking.com/blogs/xal/archive/2007/04/23/3.aspx). I now find myself wanting to implement some sort of caching, but not on the clients. I want a local server available to maintain the caching, so I can be proactive at managing it and sharing the benefit of having one user make a call and having the other users be able to use the cache.

This is where my problem comes in. To do this I need the dataportal to first go to the local cache server and check the cache before calling the remote application server.I did this by adding a second portal in my appconfig for items that can be cached. It calls the cache server and if the item isn't cached it calls the application server. Everything works running all 3 layers (client, cache, application) on one machine. But I am running into an issue once I move this to 3 separate machines. Using any one machine as the client and any as the application server it works. But when the cache server tries to call a fetch from the application server it fails. My best guess is that it's permissions, and that after the first remoting call that my identity is getting lost and won't allow me to make the second call. (Oh yeah, I am using Windows Authentication)

If anyone has any ideas, I would appreciate the input. Also if anyone has implemented a similiar concept, I would be thankful if you would share your findings.

Thanks

Stan

stanc replied on Thursday, June 28, 2007

I have some additional information. I moved both remoting hosts to the same server and it worked just fine. I moved the application host back to the third server and it now works! This of course doesn't make me happy because I don't know why.

Hopefully someone can help shed some light on this issue.

Copyright (c) Marimer LLC