[Seaside] Re: Concurrent requests from multiple sessions
Bob Arning
arning315 at comcast.net
Wed Mar 11 12:40:27 UTC 2015
So, did your previous message indicate that this was still causing a
problem in VAST? And the problem is when your "DO SOME MATH" is running,
other requests to Seaside are not processed quickly/at all?
I've written your example as a single method (best way IMO to share a
problem - if at all possible) and tested it in Squeak Seaside. When the
"DO SOME MATH" is running, processing of other request to Seaside are
delayed, perhaps as much as 1 second. How does this compare to your
experience in VAST and Pharo?
renderContentOn: html
| t0 |
html div: [
html anchor
callback: [
"self getResult."
startTime := Time now asString.
"<DO SOME MATH>".
t0 := Time millisecondClockValue.
[(t0 - Time millisecondClockValue) abs < 30000] whileTrue.
finishTime := Time now asString.
];
with: 'Click me!'.
].
html div: 'Start: ', startTime.
html div: 'Finish: ', finishTime.
On 3/11/15 2:36 AM, wilwarin wrote:
> Hi Bob,
>
>> BTW, did you include some code in your message? I didn't see any if you
>> did.
> yes I did. Sorry, I made it a raw text and didn't know somebody won't be
> able to see it. Let me share the code once more (no DB call inside):
>
> 1) getResult
>
> | result |
>
> startTime := Time now asString.
> result := "<DO SOME MATH>".
> finishTime := Time now asString.
>
> ^ result.
>
> 2) renderContentOn: html
>
> html div: [
> html anchor
> callback: [ self getResult. ];
> with: 'Click me!'.
> ].
>
> html div: 'Start: ', startTime.
> html div: 'Finish: ', finishTime.
>
> Guys, I really appreciate ideas you share. Thank you.
>
> Cheers.
> Ondrej
>
>
>
> --
> View this message in context: http://forum.world.st/Concurrent-requests-from-multiple-sessions-tp4809929p4811143.html
> Sent from the Seaside General mailing list archive at Nabble.com.
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20150311/188831cf/attachment-0001.htm
More information about the seaside
mailing list