Re: handling multiple parallel request
On Sun, 19 Feb 2012 06:27:19 -0800 (PST), "rafiee.nima"
<rafiee.nima@gmail.com> wrote:
>hi
>I want to develop a VIEW for cashier system which my receives multiple
>parallel form as request from deferent clients
>I want to know how can I handle these request ...is there any thing
>like queue in django
The first thing you need to understand is that HTML is stateless; by
itself it has no knowledge or history of other activity -- not even for
a single user, much less multiple users. Everything a server receives
from a client is a new activity.
This is why browser "cookies" were invented. On the first connection
a cookie is generated to identify the user-session and passed to the
browser; all related connections have to return the cookie in order to
identify which session this post applies to. The cookie may be used to
retrieve transient information from a database (this is how the history
of previous posts is maintained).
Since going back to the server for minor updates may be so costly,
one may find lots of JavaScript in a page -- to handle collection and
verification of data on a form, and only sending a complete transaction
back to the server at the end. Or one advances into AJAX processing
which may be able to bypass the webserver itself for some stuff; this
way the session/user information stays on the client browser while the
JavaScript goes around the webserver [the "asynchronous" part of AJAX].
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home