The Artima Developer Community
Sponsored Link

Python Buzz Forum
Web applications

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Andrew Dalke

Posts: 291
Nickname: dalke
Registered: Sep, 2003

Andrew Dalke is a consultant and software developer in computational chemistry and biology.
Web applications Posted: May 17, 2005 6:46 PM
Reply to this message Reply

This post originated from an RSS feed registered with Python Buzz by Andrew Dalke.
Original Post: Web applications
Feed Title: Andrew Dalke's writings
Feed URL: http://www.dalkescientific.com/writings/diary/diary-rss.xml
Feed Description: Writings from the software side of bioinformatics and chemical informatics, with a heaping of Python thrown in for good measure.
Latest Python Buzz Posts
Latest Python Buzz Posts by Andrew Dalke
Latest Posts From Andrew Dalke's writings

Advertisement

CherryPy is one of many Python web frameworks designed to simplify the development of web applications. A big problem in web apps is maintaining state. The web client doesn't stay connected to the server so neither side know about changes in the other until a new connection is made.

This is a well-known problem and whichever system you choose will explain how it solves the problem. It will most likely be through a special session cookie or a modification to the URL to store a session name.

Another problem is what to do when multiple requests occur at the same time. CherryPy and many other systems use threads, though there are other approaches. The two requests might make conflicting changes in the server. The prototypical example is a counter tracking the number of requests. The solution is to use a system that can handle conflicts, like a SQL database or a server that uses internal locking. Using the raw filesystem, while easy to do at the start, may lead to problems because file locking under unix is shaky at best.

I could go on but there's nothing here specific to chemistry. Again, all these problems are both all well-known and solved. It's just a matter of understanding the approach used by the framework you chose. (You could build a new framework but the odds are very small that it's significantly different than several others that already exist and are documented and debugged.)

Read: Web applications

Topic: Switched to Wordpress Previous Topic   Next Topic Topic: Tool turns English to code

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use