hivesolutions / appier

Joyful Python Web App development
http://appier.hive.pt
Apache License 2.0
126 stars 22 forks source link

Async support for database access layer (eg: Mongo) #26

Open joamag opened 6 years ago

joamag commented 6 years ago

Description

Using a pool of threads and the Future based abstraction it should be possible to adapt the current data layer access to an async fashion.

PyMongo with callback support.

References

https://motor.readthedocs.io/en/latest/examples/callbacks-and-coroutines.html#with-coroutines