Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #100852
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Aaron Christensen <aaron.christensen@gmail.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: Python and multiple user access via super cool fancy website |
| Date | Fri, 25 Dec 2015 07:08:53 -0500 |
| Lines | 52 |
| Message-ID | <mailman.3.1451045341.11925.python-list@python.org> (permalink) |
| References | <CAOA=+NuwvqV0aHHYed4CQLKExi1dZm89JUfdpYMpmyazG_nBbw@mail.gmail.com> <CANy1k1hJNkvDMhnmdBt7UfE-70PCBUXhBVxciLd3FKd5cmi+yQ@mail.gmail.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| X-Trace | news.uni-berlin.de CTl8HtjOV8FIAUKWYAY/qw0CiOA2lMDhlOddX9g8JSCw== |
| Return-Path | <aaron.christensen@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.001 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.05; 'performs': 0.07; 'cc:addr:python-list': 0.09; 'mysql.': 0.09; 'received:209.85.218': 0.10; 'python': 0.10; 'python.': 0.11; 'output': 0.13; 'do,': 0.15; 'backend': 0.15; '(via': 0.16; 'fancy': 0.16; 'language)': 0.16; 'magic': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'script?': 0.16; 'scripts.': 0.16; 'subject:access': 0.16; 'subject:user': 0.16; 'wrote:': 0.16; 'case.': 0.18; '>': 0.18; 'email addr:gmail.com>': 0.18; 'programmer': 0.18; 'input': 0.18; '2015': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'handles': 0.20; 'mysql,': 0.22; 'sends': 0.22; 'am,': 0.23; '(or': 0.23; 'dec': 0.23; 'performing': 0.23; 'transfers': 0.23; 'header:In-Reply-To:1': 0.24; 'requests': 0.25; 'script': 0.25; 'question': 0.27; 'message-id:@mail.gmail.com': 0.27; 'pieces': 0.27; 'correct': 0.28; 'idea': 0.28; 'this.': 0.28; '50,': 0.29; 'idea?': 0.29; 'question:': 0.29; 'subject:website': 0.29; 'handled': 0.29; 'program,': 0.29; 'code': 0.30; 'venue': 0.30; "i'd": 0.31; 'point': 0.33; 'curious': 0.33; 'this?': 0.34; 'gives': 0.35; 'received:google.com': 0.35; 'question,': 0.35; 'something': 0.35; 'asking': 0.35; "isn't": 0.35; 'supports': 0.35; 'but': 0.36; 'there': 0.36; 'received:209.85': 0.36; 'subject:: ': 0.37; 'say': 0.37; 'received:209': 0.38; 'files': 0.38; 'data': 0.39; 'sure': 0.39; 'does': 0.39; 'submit': 0.39; 'called': 0.40; 'some': 0.40; 'waiting': 0.60; 'skip:u 10': 0.61; 'more': 0.63; 'personal': 0.63; 'information': 0.63; 'interest': 0.64; 'developed': 0.66; '20,': 0.66; 'webpage': 0.66; 'manner': 0.69; 'incredible': 0.72; 'yourself,': 0.72; 'lack': 0.76; 'subject:via': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=HL+A85d7hS46J2K4lFRzXRfyqJrCzGkLZmG+Bf2QZCs=; b=poU1x16M7YhW7YIQRh+aaFATHArn8aQHMAA1ZIrPDkQw/N/Gi/OUQEZWaSLB3fclH4 MewtmHDaNbq8MA4sNjz7RBJtDFrrTYudZ2LjkwkTOc8vSn2EsixvSmThq9dbOKf6m6+W wa1RrIb/fX6Ei6EL+6KasiPfmKhjU+93Axch0MjQCHoHHepflE964FmwudQLieTuJ2Sb xs4z+uErdkv15lMdFs/GCiE8WmFWdC7szzGqVEYgn5+Xd/KUWlw+k3cBNrfRbpfhsIi6 QgoIqC5dltweCx8NVrUTkKN+lx0s4C5xlDXKdDJHS7AGmgLP6GPCW/np11oRODD7RFxE zJrQ== |
| X-Received | by 10.202.72.137 with SMTP id v131mr21826356oia.90.1451045333596; Fri, 25 Dec 2015 04:08:53 -0800 (PST) |
| In-Reply-To | <CANy1k1hJNkvDMhnmdBt7UfE-70PCBUXhBVxciLd3FKd5cmi+yQ@mail.gmail.com> |
| X-Content-Filtered-By | Mailman/MimeDel 2.1.20+ |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.20+ |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Xref | csiph.com comp.lang.python:100852 |
Show key headers only | View raw
Hi Jason,
What gives you that idea?
On Dec 25, 2015 12:23 AM, "Jason Friedman" <jsf80238@gmail.com> wrote:
> > I am not sure if this is the correct venue for my question, but I'd like
> to
> > submit my question just in case. I am not a programmer but I do have an
> > incredible interest in it, so please excuse my lack of understanding if
> my
> > question isn't very thorough.
> >
> > As an example, a website backend is developed using Python. Users can
> > submit their input through the website and PHP (or some other language)
> > transfers the user input from the website fields to a database such as
> > MySQL. There is a main script called main_script.py which extracts the
> > user data from MySQL, processes it, stores output in MySQL and sends
> output
> > to the user (via webpage and email).
> >
> > About main_script.py
> > # main_script.py extracts user input from MySQL, processes it, stores
> > output in MySQL and send output to user (via webpage and email).
> > # Inputs: User personal information such as age, dob, nationality,
> hobbies,
> > and 20 or 30 other fields
> > # Output: main_script.py is going to do something with it such as access
> > the database and some shelve files or other py scripts. I have no clue
> what
> > it's going to do, but my point is that the processing of the input to
> > output will take longer than simply a print('Hello, %r!' %user_name).
> >
> > My question: I am curious to know how Python handles something like
> this.
> > Let's say that there are 10, 20, 50, or even 1000 users accessing the
> > website. They all put in their 20 to 30 pieces of input and are waiting
> on
> > some fancy magic output. How exactly does that work? Can multiple users
> > access the same script? Does the Python programmer need to code in a
> > manner that supports this? Are requests to the script handled serially
> or
> > in parallel?
>
> I have a hunch that you do not want to write the program, nor do you
> want to see exactly how a programmer would write it?
>
> The question is more like asking a heart surgeon how she performs
> heart surgery: you don't plan to do it yourself, but you want a
> general idea of how it is done? How do you keep the patient from
> bleeding to death? Does the heart stop while performing the surgery,
> and if yes, how does the patient stay alive?
>
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Python and multiple user access via super cool fancy website Aaron Christensen <aaron.christensen@gmail.com> - 2015-12-25 07:08 -0500
csiph-web