TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ebay launches query language

81 pointsby jurreover 13 years ago

10 comments

mjsover 13 years ago
Interesting, another use of a SQL-like language as the query language for a data store that's definitely not an SQL database. (YQL is another example.) I really don't understand why ORMs always seem to want to create their an object-based query language--SQL is just fine for querying.
评论 #3312543 未加载
评论 #3314016 未加载
itmagover 13 years ago
Interesting. Isn't this the metalinguistic paradigm in action? Ie instead of creating a library/API you create a whole new Domain-Specific Language.<p>Thoughts on this? Is there room for innovation in APIs via DSLs?
评论 #3312228 未加载
buro9over 13 years ago
Anyone who implements this might want to bear in mind that you will have created a very chatty backend based on JSON calls.<p>It should be fairly obvious that you're quite likely to now have pain points in serialising and deserialising that much JSON.<p>It seems to me that you now have 2 choices:<p>1) You forget this approach and instead perform REST composition and aggregation by adding a datastore in the composition/aggregation service to reduce the number of calls to the back end.<p>2) You ditch the internal REST services and change to using protocol buffers or something else to remove the JSON bottle neck internally.<p>Either of which will make ql.io redundent.<p>ql.io appears to be trying to solve REST as the language of enterprise services, without using a service bus or BPEL to aid with composition or aggregation.<p>I agree there is a problem space here, and whilst I have an immense amount of respect for Subbu (worked on ql.io, authored REST book) I'm unconvinced that this approach is the solution to the problem.
mjsover 13 years ago
Ah, looks like this is the library Subbu Allamaraju refers to at <a href="http://www.subbu.org/blog/2011/11/apis-are-a-pain--the" rel="nofollow">http://www.subbu.org/blog/2011/11/apis-are-a-pain--the</a> aim of ql.io is to alleviate the challenges of "aggregation, parallelization, and orchestration of forks and joins." (i.e. in practice, "consistent RESTful APIs don’t matter as much as we think," nice though they may be.)
kilovoltaireover 13 years ago
I've been thinking lately that certain APIs would benefit from two distinct 'entry points':<p>1. a nice, object-oriented hierarchical RESTful interface for standard queries and getting started e.g. /api/user/12345/friends/<p>2. a sql-esque query language interface for arbitrary, complicated requests e.g. /api/?q=select id from users where name="Joe"<p>It looks like ql.io could be a good way to provide the latter.
评论 #3313133 未加载
gislanover 13 years ago
Why, oh why did they put "select" before "from"? It makes auto complettion so much harder.
评论 #3312422 未加载
tlianzaover 13 years ago
This looks a lot like OData... strange that they don't mention it when they compare themselves to other querying technologies on the 'about' page.<p><a href="http://www.odata.org/" rel="nofollow">http://www.odata.org/</a>
评论 #3312864 未加载
charliesomeover 13 years ago
Site's down for me
评论 #3312035 未加载
simonbrownover 13 years ago
Having the "fork me" button above the scrollbar (at least in Chrome on Windows) looks pretty ugly.
评论 #3312847 未加载
abavaover 13 years ago
Yahoo Pipe ?