pygeoapi icon indicating copy to clipboard operation
pygeoapi copied to clipboard

Async API

Open aprilmay opened this issue 3 years ago • 1 comments

Is your feature request related to a problem? Please describe. Pygeoapi already has support for Starlette, and other Asyncio frameworks gain momentum. However, the API is not async, blocking the main thread.

Describe the solution you'd like Provide an async version of pygeoapi.api

Additional context A quick and dirty async prototype of pygeoapi's API was forked (for a project which uses aiohttp).

If it makes sense, what's the best way to proceed to add this? I'm thinking of an async_api module that could be used like in from pygeopai.async_api import API.

aprilmay avatar Sep 15 '20 06:09 aprilmay

Hi @aprilmay, this would be great. It was in my todo list since ever. I think your approach makes sense. However, I want just to flag that still the providers would block the thread because they are not async ready. Maybe you can start with the Postgres provider which would have some options for the async stuff.

francbartoli avatar Sep 15 '20 10:09 francbartoli

As per RFC4, this Issue has been inactive for 90 days. In order to manage maintenance burden, it will be automatically closed in 7 days.

github-actions[bot] avatar Mar 10 '24 21:03 github-actions[bot]

As per RFC4, this Issue has been closed due to there being no activity for more than 90 days.

github-actions[bot] avatar Mar 24 '24 03:03 github-actions[bot]