comment server implemented in python to host comments on lbry
Find a file
2019-06-03 04:17:38 -04:00
config removes anonymous channel from being used as the default channel for anonymous comments 2019-05-31 15:55:48 -04:00
schema timestamp order by ascending > order by descending 2019-05-31 22:05:12 -04:00
src Explicitly lists & excludes claim_id from return 2019-06-03 04:17:38 -04:00
tests Modifies tests and entrypoint 2019-05-29 18:01:48 -04:00
compile.py Moves async code around 2019-05-26 00:42:39 -04:00
LICENSE.md Create LICENSE.md 2019-05-21 08:17:10 -04:00
main.py Modifies tests and entrypoint 2019-05-29 18:01:48 -04:00
README.md update in readme 2019-05-21 15:16:17 -04:00
requirements.txt Makes compile-friendly 2019-05-25 22:44:56 -04:00
schema.png Adds readme 2019-05-21 08:13:34 -04:00

LBRY Comment Server v2

This is a rewrite & update of the server written by myself and Grayson Burton here

Install & Setup

Clone the repo and install a virtual environement:

# clone the repo
$ git clone https://github.com/osilkin98/comment-server

# create a virtual environment in any (current) version of python3.X
$ virtualenv --python=python3 venv
$ source venv/bin/activate 

# install the dependencies
(venv) $ pip install -r requirements.txt

Running the server

Just run: (venv) $ python -m src.main.py and it should run automatically.

Schema

schema

About

A lot of the design is more or less the same with the original, except this version focuses less on performance and more on scalability.

Rewritten with python because it's easier to adjust and maintain. Instead of doing any multithreading, this implementation just delegates a single database connection for write operations.

The server was originally implemented with aiohttp and uses aiojobs for scheduling write operations. As pointed out by several people, Python is a dinosaur in comparison to SQLite's execution speed, so there is no sensibility in multi-threading from the perspective of the server code itself.