CSC/ECE 517 Fall 2009/wiki2 3 b5: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
Line 2: Line 2:


== Problem summary ==
== Problem summary ==
Many websites rely on synchronous activity between the client and server.  This synchronization can be disrupted if the client takes actions in an order not expected by the server.  For instance, when submitting a purchase in an online store, the client might click the "Purchase" button multiple times.  They might hit their browser's back button and take another action while the transaction is still processing.  These types of actions could produce unpredictable results and must be protected against.


== Overview ==
== Overview ==

Revision as of 00:45, 10 October 2009

Synchronizer Token Pattern

Problem summary

Many websites rely on synchronous activity between the client and server. This synchronization can be disrupted if the client takes actions in an order not expected by the server. For instance, when submitting a purchase in an online store, the client might click the "Purchase" button multiple times. They might hit their browser's back button and take another action while the transaction is still processing. These types of actions could produce unpredictable results and must be protected against.

Overview

Example application

Critique

Other solutions

Further reading

Resources

Java World Tip 136