"Semi global" Comet?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

"Semi global" Comet?

Bernat Romagosa
Hi list!

We're coding an app in which we need some info to be updated at real time, so I started to digg into Comet.

Our problem is that the data to update is not 100% global, instead each user sees and modifies different parts of the objects in the database, and different users share different data with different sets of users. All examples and tutorials (including the one in the Seaside book) deal with applications that share the same view and behaviour for all users at the same time, and I'm feeling pretty unable to find an elegant solution to this particular problem.

Is there any common best practice to handle this? I can only think of awfully ugly (and predictably slow as hell) ways to implement it...

Thanks!

Bernat Romagosa.

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: "Semi global" Comet?

Lukas Renggli
The trick is to trigger an event on all clients that then individually
do a request to update their view, such as in the table report
example.

Lukas

On Thursday, November 11, 2010, AxiNat <[hidden email]> wrote:

> Hi list!
> We're coding an app in which we need some info to be updated at real time, so I started to digg into Comet.
> Our problem is that the data to update is not 100% global, instead each user sees and modifies different parts of the objects in the database, and different users share different data with different sets of users. All examples and tutorials (including the one in the Seaside book) deal with applications that share the same view and behaviour for all users at the same time, and I'm feeling pretty unable to find an elegant solution to this particular problem.
>
>
> Is there any common best practice to handle this? I can only think of awfully ugly (and predictably slow as hell) ways to implement it...
> Thanks!
> Bernat Romagosa.
>
>
>

--
Lukas Renggli
www.lukas-renggli.ch
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: "Semi global" Comet?

Bernat Romagosa
Hi Lukas, thanks a lot!!! I got it working :)

Coding night ahead now!

Bernat Romagosa.

2010/11/12 Lukas Renggli <[hidden email]>
The trick is to trigger an event on all clients that then individually
do a request to update their view, such as in the table report
example.

Lukas

On Thursday, November 11, 2010, AxiNat <[hidden email]> wrote:
> Hi list!
> We're coding an app in which we need some info to be updated at real time, so I started to digg into Comet.
> Our problem is that the data to update is not 100% global, instead each user sees and modifies different parts of the objects in the database, and different users share different data with different sets of users. All examples and tutorials (including the one in the Seaside book) deal with applications that share the same view and behaviour for all users at the same time, and I'm feeling pretty unable to find an elegant solution to this particular problem.
>
>
> Is there any common best practice to handle this? I can only think of awfully ugly (and predictably slow as hell) ways to implement it...
> Thanks!
> Bernat Romagosa.
>
>
>

--
Lukas Renggli
www.lukas-renggli.ch
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside