It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
How to publish or deploy .NET website without delays?
I have look for websites that are build over .NET technologies, like StackOverflow, and I never saw them down because an update is being made. For my web sites, I got down time in minors updates, like correcting some bugs on my Controllers (I use MVC), not by doing something bigger like database or server movements.
So how can I prevent site loading delays due to ASP.NET Startup?
I know that it require "ASP.NET worker process" to compile the code, but how can I prevent the traffic issues.
The typical way of doing this is creating a farm of multiple web servers and, when you want to update the site, take each server offline and update them one at a time. Investigate How to create an ASP.NET web farm?.
It's all about the server setup. Most companies have at least 2-3 server: 2 Frontend servers and a backend server. Then you can take one of the frontend servers down, point all traffic to the other one, upgrade the server which is down, and then take that server up, and continue the process with the other.
In some cases you would use load balancing to make sure the two servers are synchronized.
You will notice that sometimes you cannot post here on Stackoverflow because of updates. That's because the database is a shared server, which "can be down", if you need an upgrade. Yes, there are also options against this, but it can gives problems if everyone writes to the database while the site is up, hence the "readonly mode" from time to time.
Related
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I have a potential client that wants to build a platform agnostic application. Initially it'll run on a windows 7 tablet and will expand. Its a roofing business, so they're going to take pictures with the camera, fill out some forms, and then generate a report from it. The first thing I can think of is making an API call to a web service I create that does some crystal reports magic them returns to the client.
Problem is, they aren't always guaranteed internet access. What can I do here? My thoughts right now are building the app in rails or MVC 4.
It is pretty hard to answer your question since it won't be an exactly answer, but my thougths are:
1° - Build a Windows Phone app that will fill out everything that is
needed and store locally
2° - Do a background process that will send this via rest calls to a
service
3° - Build the service to receive the requests and a rails app to the
client to login and have access to the reports this can be made in
rails
This is a possibility if they need to access reports from anywhere. Otherwise the reports could be made in the tablet itself.
Just some thoughts, the solution may take a very different path, since you were not accurate enough to a definitive answer.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I hope there is someone that can help me.
I am writing a software that users can fill in information into a database, but I want to install that same software that I created on multiple computers. When a other user is inserting new information into the software and click save then it must show on his/her computer and at the same time on the other PC's in the network.
I think this is a difficult one to crack, but I hope some one can help me.
Greetings
There are many ways to solve this. I recommend to use a server-side application (installed on the database server system for example) which receives a notification from the inserting app. Then, the server side app will send either a UDP broadcast or use a TCP connection to the clients to notify them.
The clients then just need to listen for server messages in a background thread. The messages will be 'pushed' from the server to the client.
An example which can be used as a starting point is the Indy Telnet client component which has a listener thread for server messages. You do not have to open the client firewall for incoming connections to work this way.
There are also complete messaging solutions available, but maybe they would be to heavyweight for your requirements. If you like, I can provide some links.
I would not recommend
database polling (too expensive and unflexible)
database events (run in the server process, could block operation or crash)
A standard which can be used for this messaging system is WebSocket. There are commercial and open source Delphi implementations for the client and server side.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I just started learning Erlang. My task to write a simple script for testing web applications. I hasn't found work script in the Internet, and Tsung too bulky for such a task. Is anyone can help me (give working example of script or link where I can found it)?
What would be possible to specify a URL, and concurrency, and time of testing and get the results. Thanks.
This links not help:
http://effectiveqa.blogspot.com/2009/12/minimal-erlang-script-for-load-testing.html
(not working, function example/0 undefined )
http://www.metabrew.com/article/a-million-user-comet-application-with-mochiweb-part-1
(work for socket, but I need concurrent testing)
I use for such purposes basho bench. It not so hard to start with it and add your own cases. Also it contains script, which draw all results.
Would like to build one? I would not recommend that way (because I have tried and there are so many things to consider to build one, especially spawning many processes and collecting the result back)
As you already know, I would recommend tsung, although it is bulky, it is a full load test application. I have gave up mine, and went back to tsung because could not properly handle opening/closing sockets with too many processes.
If you really want a simple one, I would use httperf. AFAKI, it works fine with single machine with multiple processes.
http://agiletesting.blogspot.ca/2005/04/http-performance-testing-with-httperf.html
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
How do I track a program Internet Request? Like Windows Live Messenger, in order to make a bot that does the same thing.
Because I'm making a application that verifies the number of users online, and chat with these people, but I would like to know, where does it connect to do that.
In Web I use the LiveHTTPHeader or FireBug to see where is the page sending GET/Post DATA too and which parameters are being sent. What about desktop applications? how do I do?
You should use a library, for instance in csharp:
http://code.google.com/p/msnp-sharp/
Because tracking web request is irrelevant. if you want to make a bot, you should work with an Api.
Applications like Live Messenger, Skype etc do not normally use the http protocol to communicate with their servers or peers. Instead they mostly use their own, sometimes proprietary protocols over TCP/IP, over ports other than the default http port. In order to "listen" to what these programs are sending/receiving you would need a program that "sniffs" TCP data. I imagine however that these eavesdropping attempts will mostly prove futile, since many of the programs you are trying to understand also use encryption.
Use Wireshark to dump all your network traffic, then use filters so you keep only the data that Messenger sends.
http://www.wireshark.org/
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I want to implement a Web Service that will allow users to store arbitrary data in my home computer and execute arbitrary batch programs to manipulate said data. In order to keep things simple, so I will not deal with priority queues and concurrent processes yet. My process request queue will be a simple FIFO queue.
So, I know how to implement Web Services, and obviously I know how to implement a FIFO queue, but I do not know how to implement a system service that runs in the background, waiting for requests. Where could I find learning resources on how to develop a Windows service?
I already know Windows development using the Windows API, MFC and even some ATL/WTL. (I also know .NET, but I do not like it very much, because it gets in the way how I design programs.) But I would rather not have to deal with COM.
Since you're developing a service on Windows and you want to use web services chances are that you will want to host your solution in IIS which is already the type of always-on, background application that you want. E.g. runs all the time regardless of login or UI.
If you use the .NET framework then your implementation will become especially easy due to all the project templates available in Visual Studio.
Here's some CodeProject tutorials:
http://www.codeproject.com/KB/WCF/WCFPart1.aspx
http://www.codeproject.com/KB/WCF/WCFWebService.aspx