Update 01/23/17: I wrote an application called postgresql2websocket to send PostgreSQL notifications via websites using Python 3 with asynchronous + aiohttp + asyncpg https://github.com/frafra/postgresql2websocket ; you can combine it with PostgREST to have both standard REST APIs and real-time updates using WebSockets.
As far as I know, there is no HTTP server extension for using SQL databases with web sites without any visits.
You can use server-side Python, for example: real-time web applications using (only) Python and Postgres . I think this can be improved thanks to aiopg . If you don't need Websockets, you can just use ngx_postgres .
If you like Django, Django Channels will probably be included in Django 1.10 (Redis / in-memory / ... layer for channels and SQL server).
You can use SQLite, but keep in mind that you need to implement a server-side publish / subscribe mechanism (like the Django channel), because SQLite does not have this.
If you're just interested in a pub / sub on top of Websockets, you can use Webdis (a solution based on Redis): this will probably be easier than a full SQL database.
source share