-
Notifications
You must be signed in to change notification settings - Fork 438
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can we use php-gds as the official Datastore library? #17
Comments
/cc @tomwalder :) |
Hello. |
Hey Tom! 👋 Hope all is well and thank you for the contributions! The library looks solid and I really appreciate your usage of design patterns, especially the implementation of the gateway. Usage is straight forward and the examples are very helpful. I see that you provide options to wrap the appengine sdk and the google api client. So far, with the work I have started on the storage client (and after quite a bit of deliberation) I leaned in the direction of not relying on existing libraries and going the route of some our sister libraries (gcloud-python, gcloud-node). The flexibility of not being tied to upstream libraries when we scale and the ability to provide full customization over the underlying http layer were important factors to me. As the library grew have you found there to be any challenges or issues with wrapping the existing google clients/sdks? |
Thanks for the vote of confidence! The library was born out of my need to use Datastore in production. Initially, there was only support for the JSON API. I've worked with @sjlangley to get the native Protocol Buffer stuff up to scratch. The performance benefits are clear. I have retained support for the JSON API, but the features are not a 100% match, which can cause some problems maintaining feature equality. To be honest, I think the vast majority of users now use the PB implementation. The local development server does not support GQL, so I had to throw together a basic GQL parser to get over that hurdle. I need to make the roadmap a little more obvious. Lots of plans! Would you plan to re-write a ProtocolBuffer direct interface in gcloud-php? Seems like a significant amount of work, given that the sdk is included in AppEngine deployments by default? |
Could those interfaces be generated using Protobuf-PHP? Also, we have no guarantee someone would run the code on app engine. Do you know if the appengine-php-sdk is intended for use outside of that environment? |
The app engine SDK makes use of a compiled PHP module for the final I'm not familiar with the inner workings of this, but I expect it to be There is a RemoteAPI component, but not really familiar with how that might On Thursday, 11 February 2016, David Supplee [email protected]
Tom Walder, CTO |
I'm planning support for the v1beta3 API now... |
Let's see if we can get to a place where our plans can align here :). Before we could move forward with merging anything in there are some items we need to address:
If it would be helpful, we could schedule some time to do a quick video chat and discuss more details this week. Let me know what you think. Thanks! |
Hi there. Happy to chat through this. All sounds pretty workable. I'm in the UK, on BST at the moment - let me know when might be a good time! Tom |
Great! :) Any day Tuesday-Thursday and preferably in the 9am to 5pm EDT range would be good. Shoot me an email @ [email protected] and we can iron out the rest of the details. |
/cc @tomwalder |
Not wanting to add noise, but as some of us are betting the farm on Google Cloud :) , just wondering if any updates on the overall official Datastore support in PHP please? (i'm using Datastore with Standard PHP AppEngine via Tom's excellent library). Many thanks. |
Hey @ajck, thanks for your interest in the platform :). We were looking forward to working with Tom on this one but the timing unfortunately didn't work out. Support for Datastore over REST is expected to be available within the next month, with gRPC support coming soon after. |
@dwsupplee Thanks that's great to hear. Just a couple of questions please - what sort of geopoint support can we expect from the PHP Datastore APIs (i.e., I need to find coordinates within an area) and secondly, will API docs and/or example PHP code be available too? Many thanks, |
Docs and some basic usage examples will be available. @jdpedrie has been the primary on the datastore implementation and would likely be the best fit to answer your question about geopoint support :). |
Hey @ajck. Our implementation of datastore will support geopoints. And yep, we definitely provide documentation and example code for every method. |
AFAIK, the v1 Datastore API does not support geo locality (near to) type queries though? Against You might be able to implement some geohash stuff in the library layer I guess. |
We will be supporting data access around geo point types but as far as I am aware @tomwalder is spot on in that there isn't support for location based queries in datastore yet. There are currently no plans to add this functionality to the library and other tools will currently be needed to achieve it. It does look like support in datastore may be on the way as the alpha release of geospatial queries for Java hints, however. We will be happy to make sure this functionality is included in the library as soon as it becomes available. @pcostell might be able to share some information on expected time lines for for geospatial queries for us :). |
You can use the Search API to do geospatial stuff now (and other basic full text search) |
Nothing I can share, @dmcgrath may have more information. |
See https://github.com/tomwalder/php-gds
Is this something we could discuss with the owner about merging into gcloud-php and being "the official library" ?
The text was updated successfully, but these errors were encountered: