Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Why not use Windows service for long tasks?
hbazerbashi
#1 Posted : Tuesday, 21 June 2011 4:26:51 AM(UTC)
Rank: Member

Joined: 19/12/2010(UTC)
Posts: 7

A Windows Service for performing some long-running tasks, such as Synchronization.

Wouldn't it be better and to avoid time outs and such things.

What do you think?
Roger Martin
#2 Posted : Tuesday, 21 June 2011 7:05:43 AM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

You are right that there are some advantages with a Windows Service, but the biggest disadvantage is that it won't work for people using a hosting service. It would also require an installation program and a UI to interact with it.

GSP ships with the timeout increased to 24 hours, which should be enough for most people (change the executionTimeout setting in web.config if you want something different). In my experience, the most fragile aspect of syncs is the client-side ajax communication with the server failing. When this happens, the browser loses the ability to tell you how the sync is progressing, but it is still buzzing along on the server. That is annoying but at least the sync continues.

That said, I have no objection to someone creating a service and posting it here.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
Rss Feed  Atom Feed
Users browsing this topic
Guest
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.