Alles ist eine URL …

By [m]

In seinem Artikel Living Without Sessions beschreibt Paul James an einem anschaulichen Warenkorb-Beispiel, wie wir alle Anwendungsinfos einer Webapplikation als URL anstelle von Sessions speichern können, um die erwünschte Zustandlosigkeit in der Kommunikation zu erreichen:
…“The thing to notice about this conversation is that it is stateless, every action from the client is independent of any other. This means that at any time, the user can run off and do something else, come back a few days later and carry on. It also means they could get some other service to add things to their shopping basket easily.“ …
Das entspricht genau dem auch in qKAI verfolgten Ziel und veranschaulicht das REST-Paradigma, dass Alles als Ressource abgebildet wird:
…“Avoiding sessions is a bit of a purest stance, but it does lead to a more scalable and usable Web app. Keeping the clients state on the client is always a good idea, you can’t scale better than by utilising someone elses computer, of course depending on your application and the technologies you are using your mileage may vary.
If you do find you need to store transitory client data on the server, think about re-working that data or the way your app. works so that the data has meaning, give it a URL and turn it into a resource the user can manipulate.
“ …

Auffallend sind besonders die sehr ähnlichen Ziele von REST und dem Linked Data Prinzip aus dem Semantic Web für Ressourcenhandling in Webapplikationen. Kein Wunder, dass bei SOA und Social Semantic Web von dem neuen Dreamteam gesprochen wird, wenn beide Erweiterbarkeit, Adressierbarkeit, lose Kopplung von Remote Services und Ressourcen sowie Zustandslosigkeit fordern.

Eine Antwort schreiben