Git Product home page Git Product logo

aql's People

Contributors

gertsallaerts avatar jorgenevens avatar

Watchers

 avatar  avatar  avatar

aql's Issues

[spec] Aggregate queries

To allow for more efficient cross-service queries, it would help if AQL provided some way to aggregate results.

Say, you have two micro-services in a social media platform. One of them stores your users. The other stores posts. You would like to ask the user service for a list of users who have commented on post A.

So you construct an AQL query and send it to the user service. In the current AQL spec, the user service would have to request all comments of post A and then start extracting a list on unique user-id's from the comments. With this list it can create a filter on its own datastore saying it only wants people who's ID is in the list of commenters.

The problem here is that one person can leave multiple comments. What follows is that a lot of redundant data is communicated between both services. It might also mean lots of extra requests if paging is involved.

If however, the AQL query allowed you to specify that you only wanted a list of unique comment.authorId values that match your query (comments on post A). The resulting data-flow could be significantly smaller.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.