Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #11 (permalink)  
Old August 22nd, 2004, 10:35 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
quote:but I dont want to be based on Application state,maybe we have 1000 users in our queue and suddenly IIS is restarted,so we will lose it(by knowing we cant save it to files everytime
Exactly. It looks like you're using the wrong tool for the job. If you're expecting thousands of (concurrent) users, don't use a file, and don't use a file based database like Access either.

I am not sure what you're trying to do. If it's for learning, don't bother with the thousands of users scenario too much. If it's for a production scenario with those thousands of users, deploy the right tools: get SQL Server or Oracle or another "grown up" database and build a robust application.

Files are just not very good in a multi-user scenario.

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: heroine by 360's (Track 10 from the album: illuminated) What's This?
  #12 (permalink)  
Old August 22nd, 2004, 11:01 AM
Friend of Wrox
 
Join Date: Jul 2004
Location: Tehran, , Iran.
Posts: 623
Thanks: 0
Thanked 1 Time in 1 Post
Default

Quote:
quote:
Using application state is no problem, even with 100 or 1000 or 100,000 users for the hit counter. All you are saving is the value of the hitcounter, and the number of users you have queued. So, all you'd be saving in Application state are two ints. That shouldn't affect performance at all
really what a great algorithm.(not for ASP.NET Application,I think this algorithm(or like such algorithms) is used in MS SqlServer and MS Access)
Imar can you tell me the difference between MS SqlServer and MS Access(file based system)in such situations when many users want to access and change the database at the same time.(I think MS SQL Server finally should use a file!)
do you advise me for a busy site I should not use MS Access at all?
(sorry for such repeated questions).
Thanks in advance.

--------------------------------------------
Mehdi.:)
  #13 (permalink)  
Old August 23rd, 2004, 01:57 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

There isn't much of an algorithm here. All you are saving is two numbers, and nothing more. There is no need for a complex algorithm to store something as simple as that.
It's like storing a number in a global variable; all it takes is the memory location for the number; nothing more and nothing less.
What made you think SQL Server or Access is used for this?

Anyway, Access Vs SQL Server will result in some interesting debates. According to Microsoft, the technical theoretical limit of an Access database is 255 concurrent users (that's quite a lot though). However, in reality you'll probably hit that limit sooner. It all depends on what you use the database for. If all you do is display read-only data, you might get away with using Access on a busy site. If, on the other hand, you perform a lot of inserts / updates on the database, you probably need SQL Server pretty fast.

Personally, I wouldn't build anything "real world" for a client on Access, but use SQL Server instead, unless it's a really small site or they explicitly ask for Access.

Take a look here: http://www.15seconds.com/issue/010514.htm for more information.

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Wormhole by Ed Rush & Optical (Track 10 from the album: Wormhole #1) What's This?
  #14 (permalink)  
Old August 23rd, 2004, 03:05 PM
Friend of Wrox
 
Join Date: Jul 2004
Location: Tehran, , Iran.
Posts: 623
Thanks: 0
Thanked 1 Time in 1 Post
Default

I think it was an algorithm ,somewhere we have many things that should be done at the same time ,we should queue and then handle them one by one
also if another task(request) is added it should be putted in the end of the queue and also we handle every request from the beginning of the queue!
I think it could be an algorithm (at least for me) but I dont know for you maybe its not something considerable.
Thank you for your reply(s)
Hope you again help me about next problems.
(Hope you help me about this thread http://p2p.wrox.com/topic.asp?TOPIC_ID=17898
do you know better ways?I think any more! theses are algorithms!haaaaa)


--------------------------------------------
Mehdi.:)
  #15 (permalink)  
Old August 25th, 2004, 03:18 PM
Friend of Wrox
 
Join Date: Jul 2004
Location: Tehran, , Iran.
Posts: 623
Thanks: 0
Thanked 1 Time in 1 Post
Default

Imar,I had this question from you...can you answer me?
when you declare two static global fields in Global.asax is there any difference between such variables and Application Items?(I dont think)
(because Global class derives System.Web.HttpApplication although the type of Application object is HttpApplicationState)
why you didnt use application Items instead of two static global variables?
Thanks.

--------------------------------------------
Mehdi.:)
  #16 (permalink)  
Old August 25th, 2004, 03:28 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

I believe I already answered this question somewhere earlier in this thread.....

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
  #17 (permalink)  
Old August 25th, 2004, 04:01 PM
Friend of Wrox
 
Join Date: Jul 2004
Location: Tehran, , Iran.
Posts: 623
Thanks: 0
Thanked 1 Time in 1 Post
Default

where?,I cant find it(its late and I'm sleepy....sorry)


--------------------------------------------
Mehdi.:)
  #18 (permalink)  
Old August 25th, 2004, 04:13 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
quote:Theoretically, you could also use Application state for the values. However, I chose static variables as it is a concept that easily translates to other (.NET) applications.

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
  #19 (permalink)  
Old August 25th, 2004, 04:18 PM
Friend of Wrox
 
Join Date: Jul 2004
Location: Tehran, , Iran.
Posts: 623
Thanks: 0
Thanked 1 Time in 1 Post
Default

right.another point from you.
Cool,Thank you very much for all the helps.


--------------------------------------------
Mehdi.:)




Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple Concurrent Requests to XmlHttpRequest deepak.vasudevan Ajax 3 March 22nd, 2006 04:56 AM
Multiple Concurrent Requests to XmlHttpRequest deepak.vasudevan Javascript 0 November 14th, 2005 06:49 AM
Multiple http-requests are stuck MereMortal C++ Programming 2 May 9th, 2005 03:46 PM
Simultaneous multiple file download balamuralivenkat Classic ASP Basics 6 December 17th, 2003 11:37 PM
How can I do simultaneous scrolling of 2 wnd? Sonin Nickolay Visual C++ 1 August 21st, 2003 04:34 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.