Ostico / PhpOrient

PhpOrient - Official Php driver based on the binary protocol of OrientDB.
Other
68 stars 37 forks source link

Does PHPOrient support live queries? #76

Open smolinari opened 8 years ago

smolinari commented 8 years ago

I noticed a function covering live query in Operations, but it doesn't seem complete. Is this a correct assumption?

What else needs to be done, to get it to work?

Scott

Ostico commented 8 years ago

@smolinari , i'm not thinking to implement live queries because of the nature of PHP. No utility can be found on leave opened sockets on apache/nginx .

smolinari commented 8 years ago

Hmm....ok.

I realize this websocket solution is between a server and web browser client,

http://socketo.me/docs http://socketo.me/docs/flow

but theoretically, the same kind of technology stack can be used to open a socket to ODB too, no? (it doesn't use Apache or Nginx....)

I don't expect you to build out the driver to support a web socketed PHP. At this point, I'd just like to know live query could actually be possible within a PHP ecosystem.

Scott

andreyvk commented 8 years ago

@smolinari Is Orient live query based on long polling or a persistent connection?

On Tue, Jul 5, 2016 at 10:03 AM, Scott notifications@github.com wrote:

Hmm....ok.

I realize this websocket solution is between a server and web browser client,

http://socketo.me/docs http://socketo.me/docs/flow

but theoretically, the same kind of technology stack can be used to open a socket to ODB too, no? (it doesn't use Apache or Nginx....)

I don't expect you to build out the driver to support a web socketed PHP. At this point, I'd just like to know live query could actually be possible within a PHP ecosystem.

Scott

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Ostico/PhpOrient/issues/76#issuecomment-230383400, or mute the thread https://github.com/notifications/unsubscribe/ABWZUsJRXLPaMVqjs5a1-7HTtQtpLGvgks5qSdeAgaJpZM4Iv0q3 .

smolinari commented 8 years ago

Good question. Looking at the Javascript driver, I'd guess persistent connections.

Scott