473,484 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Which service to use

I need to write a service and I am unsure which particular type I should
be using:

Key requirements:

1. Service must be able to run 24/7
2. Persist certain data items (logging to disk or DB is not permitted)

So after reading about, I see the following options available to me:

1. Windows Service
2. ASP.NET Web Service under II6
3. WCF Web Service II6/7
4. WCP Web Service under WAS

The Windows Service in my opinion seems the best option regarding
persistent data, but it's a lot more complicated to write certain
features you kinda get free with Web Services.

The Recycling is the really the big problem under IIS since I need to
keep values. Turning recycling off is not good enough either (touching
files etc cause a recycle)
Does WCF allow you to persist data, or does WAS allow this?

I don't mind learning new technology, so a pointer in the right
direction would be appreciated.

A final note, it doesn't need to be a HTTP interface if there are other
options. Only reason thats being used is II6 enforces this but we took
the trade off for the lovely features of II6 over writing a custom
Windows Service.
Thanks in advance.

Steven

*** Sent via Developersdex http://www.developersdex.com ***
Mar 6 '08 #1
4 1070
Can you describe where you want to persist things if not the disk or DB? And
what exactly does your service need to do?

I agree that a Windows service is a better option for 24/7 if the same
process must stay running - but if the service is intended for comms (as
your WCF comments imply), then note that hosting WCF in a Windows service is
fairly simple.

Re http, again WCF offers various transports and protocols - http is one of
them, but others are available simply by changing the configuration.

Marc
Mar 6 '08 #2
I need to presist ceratins fields in memory. Due to other factors, I am
not allowed to store these values on disk or Database.
Protocol aint too much of an issue.
I would prefer to keep using IIS, but the persistent data really is a
problem. At the moment, we have the web service ring fenced on it's
server with recycle disabled and no one can get access (ie to touch
files or update) but it's a critical process and really need another
option.

*** Sent via Developersdex http://www.developersdex.com ***
Mar 6 '08 #3
So use a win-service an WCF for the simple network access. You can get
a console example of this in VS; just move the code to a service app,
job done.

But I reckon you are going to have a lot of problems. In-memory
storage is (by definition) volatile. Computers reboot / fail etc. And
it doesn't scale worth a damn. Best of luck ;-p

Marc
Mar 6 '08 #4
Steven Blair wrote:
I need to presist ceratins fields in memory. Due to other factors, I am
not allowed to store these values on disk or Database.
It is probably just a terminology problem.

Many of us consider persist=write to disk.

Arne
Mar 8 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
2133
by: H | last post by:
This is a question that has haunted me for quite some time. if you build a 4 tier database application where the 4th tier is the database server (MS SQL 2000), where do you build the connection...
6
6497
by: Markus Eßmayr | last post by:
Hello, I'd like to consume a WebService, which returns an array of objects which include several members of type System.String, System.Decimal and System.DateTime. In the WSDL-file, the members...
5
1423
by: Julia | last post by:
Hi, I am creating a windows service which host a remote object that can be connected by other application (desktop applications and asp.net) and I wonder which type of UI window application...
7
3282
by: felecha | last post by:
I have been developing an app in VB.Net, using a simple form and a button to kick off a class that starts asynchronously receiving from a MessageQueue. It's been working fine, but now I'm moving...
4
7521
by: Jonas Hei | last post by:
I've noticed that one can use IE to test web pages (by going on http://hostname/blah/blah.asmx - and then it shows a list of methods supported by the webservice, and on selecting each method once...
1
4858
by: Mike9900 | last post by:
I would like to return an object which inherits an interface. A web service instantiate a class that inherits that interface and returns that object. But I get error when referencing the web...
0
1345
by: sameem.samad | last post by:
Hi, I have a solution which has 3 layers - GUI, Interface Layer and web service layer. GUI layer is referencing Interface Layer and Web service layer also pointing to interface layer. GUI...
7
6303
by: jtbjurstrom | last post by:
Bear with me because we are new to WCF and have been going through documentation and samples trying to absorb as much as possible in a short amount of time. Any suggestions would be much...
0
1826
by: jigsmshah | last post by:
i am working on a project (windows service using VB.Net and C#) which gets the check details and check images from the database and prints the check to a printer. Printer name is configured in a...
0
6953
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7144
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7214
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4529
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3046
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3041
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1359
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
592
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
235
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.