laravel-graphql icon indicating copy to clipboard operation
laravel-graphql copied to clipboard

How do we hande Subscriptios and Cache here?

Open codeitlikemiley opened this issue 7 years ago • 2 comments

Ive see there is a merge pull request, of subscription,

but an example of implementing subscription is not documented...

if there is can someone share the link if not, can someone share their knowledge who they use it?

Also Where do we put the caching logic?

Is it on the backend or the client side?

Hope you can also share your knowledge on this thanks

codeitlikemiley avatar Jan 29 '18 01:01 codeitlikemiley

Im afraid that subscriptions means async calls. PHP cant, you need a socket technology, maybe redis, node or similar.

Haven’t seen it on anywhere. i really dont think will ever be,

On 29 Jan 2018, at 02:01, Code It Like Miley [email protected] wrote:

Ive see there is a merge pull request, of subscription,

but an example of implementing subscription is not documented...

if there is can someone share the link if not, can someone share their knowledge who they use it?

Also Where do we put the caching logic?

Is it on the backend or the client side?

Hope you can also share your knowledge on this thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Folkloreatelier/laravel-graphql/issues/278, or mute the thread https://github.com/notifications/unsubscribe-auth/ABdTXMgNVKLNfhA-92n-g_H3ZkUO8Vbxks5tPRhggaJpZM4Rv8XZ.

kikoseijo avatar Jan 29 '18 09:01 kikoseijo

What about React PHP https://reactphp.org/ I think it is possible to create a socket server using React PHP, I haven't tried yet.

tonychuuy avatar Feb 21 '18 00:02 tonychuuy