Add a GUID to AJAX Requests to Allow De-Duping on Server #956

Closed
djspiewak opened this Issue Apr 2, 2011 · 6 comments

Comments

Projects
None yet
5 participants
@djspiewak

Currently, it is possible for an AJAX request to be send multiple times by the browser and handled as many times by the server. Consider the following scenario:

  • Browser initiates an AJAX request
  • Server receives request, processes and returns response
  • Browser still hasn't received response (due to network latency), and assumes request has timed out
  • The request goes back into the local AJAX queue and is sent again
  • Server receives request a second time, processes and returns response

You see where this is going.

In Novell Vibe, we solved this problem by adding an ID to our AJAX requests that were susceptible to this issue. Then, when the server receives the request, it checks to see if it's already processed that id. Unfortunately, we've only been able to do this on a case-by-case basis, and it's not trivial code when done at the application layer. This could be handled much more elegantly by Lift itself as part of the generalized AJAX dispatch mechanism.

@indrajitr

This comment has been minimized.

Show comment Hide comment
@indrajitr

indrajitr Jul 21, 2011

Owner

Updating tickets (#919, #938, #950, #956, #976, #980, #982, #999, #1008, #1024, #1025, #1032, #1034, #1051)

Owner

indrajitr commented Jul 21, 2011

Updating tickets (#919, #938, #950, #956, #976, #980, #982, #999, #1008, #1024, #1025, #1032, #1034, #1051)

@indrajitr

This comment has been minimized.

Show comment Hide comment
@indrajitr

indrajitr Sep 9, 2011

Owner

Updating tickets (#950, #956, #976, #980, #982, #999, #1008, #1053, #1078, #1092, #1097)

Pushed pending tickets to 2.4-M5

Owner

indrajitr commented Sep 9, 2011

Updating tickets (#950, #956, #976, #980, #982, #999, #1008, #1053, #1078, #1092, #1097)

Pushed pending tickets to 2.4-M5

@indrajitr

This comment has been minimized.

Show comment Hide comment
@indrajitr

indrajitr Nov 11, 2011

Owner

Updating tickets (#956, #976, #980, #982, #1008, #1053, #1078, #1092, #1097, #1128)

Owner

indrajitr commented Nov 11, 2011

Updating tickets (#956, #976, #980, #982, #1008, #1053, #1078, #1092, #1097, #1128)

@indrajitr

This comment has been minimized.

Show comment Hide comment
@indrajitr

indrajitr Dec 22, 2011

Owner
Owner

indrajitr commented Dec 22, 2011

@github-importer

This comment has been minimized.

Show comment Hide comment

@ghost ghost assigned dpp Mar 1, 2012

This was referenced Mar 1, 2012

@ghost ghost assigned Shadowfiend Aug 18, 2012

@Shadowfiend

This comment has been minimized.

Show comment Hide comment
@Shadowfiend

Shadowfiend Nov 9, 2012

Owner

Fixed in #1328.

Owner

Shadowfiend commented Nov 9, 2012

Fixed in #1328.

@Shadowfiend Shadowfiend closed this Nov 9, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment