473,548 Members | 2,716 Online
Bytes | Software Development & Data Engineering Community
+ 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 1081
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
2147
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 string? The obvious answer is to hard code it into the middle layer and use a config file. The problem is the database application needs to be...
6
6506
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 of the object are marked as nilable. I generated the client classes using VS.NET 2003. After the creation, I got the class-definition of the...
5
1430
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 is best for administrating the service (running on windows 2000 and windows 2003)
7
3285
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 toward converting it to a Windows Service, so I switched from instantiating the clsMsgReceiver class at the Button_Click to a simple Main() that...
4
7531
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 gets the option to specify the parameters and then 'Invoke' the service). Although, this option is extremely handy, are their any other...
1
4866
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 service from windows form. the error is: "System.NotSupportedException: Cannot serialize interface EmployeeCommon.IEmployee." EmployeeCommon.IEmployee...
0
1363
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 layer has following Code: Dim obj as IFedService = IFedService.BrokerHelper.GetAddress Dim str as string = obj.GetAddress(ObjData)
7
6308
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 appreciated. We would of course rather start off on the right path instead of learning later that there's a much better and easier solution, but get stuck...
0
1839
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 XML file. Printer names are names which are available to the system on which the service is running. Printers used are network printers and are...
0
7711
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7954
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7467
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7805
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5085
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3497
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3478
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1932
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 we have to send another system
0
755
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.