Giter Site home page Giter Site logo

async variants? about ndb-orm HOT 2 CLOSED

berlincode avatar berlincode commented on July 20, 2024
async variants?

from ndb-orm.

Comments (2)

berlincode avatar berlincode commented on July 20, 2024

This project is intended to be used with google-cloud-datastore. Basically it can be used as some kind of wrapper for it.

There are imho at least two different ways to connect to google's datastore:

  • a grpc/protobuf based interface (which is used by google-cloud-datastore)
  • and a simpler (less powerful) rpc interface (which is used by aiogcd)

The original ndb interface used nearly the same interface which is now used by google-cloud-datastore. There are several ndb feature that require this interface.

At the time I started this project I already had a look at aiogcd, but decided to go with google-cloud-datastore to create a high compatibility to ndb.

If google-cloud-datastore will one day support async methods we can make immediately use of it.

Besides this I was very successful to use python3 async methods to create a database-batcher on top of ndb-orm and used pythons async method to make requests to other databased (redis) and prepare some calculations while ndb-orm fetches the data.

I hope this helps somehow. I'm not able to supply direct async functions for ndb-orm until the google-cloud-datastore will.

from ndb-orm.

HIRANO-Satoshi avatar HIRANO-Satoshi commented on July 20, 2024

Thanks for explanation.

I'm thinking to migrate to Go now.

from ndb-orm.

Related Issues (8)

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.