GSS-Cogs / linked-data-repository

A repository to hold and store CSV-Ws, Turtle and other Linked data
Apache License 2.0
0 stars 0 forks source link

WASGI Interface needed? #39

Open mikeAdamss opened 2 years ago

mikeAdamss commented 2 years ago

Investigate production ready best practices with Sanic.

As I understand it, you don't need a wsgi server (i.e gunicorn) in the way that other python frameworks tend to, but you can use one - so that leaves a few questions to answer:

the spike is

mikeAdamss commented 2 years ago

@robons - this came up in standup - I'm genuinely not sure how accurate the thing I read was but a little time before we make any big choices seemed sensible.

robons commented 2 years ago

@robons - this came up in standup - I'm genuinely not sure how accurate the thing I read was but a little time before we make any big choices seemed sensible.

I suspect that the way sanic works is it allows you to run a local dev environment (to simplify the dev process) - but I suspect that it's single threaded.

I'm very keen to ensure we're able to cope with multiple requests concurrently, so if the sanic web server itself can deal with that, then that's fine, else I think we'll need the ASGI interface (#40).

mikeAdamss commented 2 years ago

yeah that's typically the approach but stumbled over a few posts strongly of the opinion that Sanic is productionized in of itself (new to me, but so is Sanic). It won't be a long spike but worth doing