hlmod / Shop-Core

Documentation
https://hlmod.github.io/Shop-Core/module/create/
GNU General Public License v3.0
28 stars 26 forks source link

Move to use RESTful API instead of databases #128

Open TiBarification opened 2 years ago

TiBarification commented 2 years ago

Is your feature request related to a problem? Please describe. As we know there are a bunch of issues related to driver connection in MySQL of SourceMod, late loading items etc...

Describe the solution you'd like Create and use separate BackEnd part that can use any database and proceed work with prepared contracts. Expected issues:

Describe alternatives you've considered Use local database, but it is not a solution for large database.

Additional context Maybe implement sockets connection to synchronize items between gameserver & database.

Profits

TiBarification commented 2 years ago

@R1KO @CrazyHackGUT need your opinion (please use english).

CrazyHackGUT commented 2 years ago

Do I understand correctly that we are burying SQLite usage?

R1KO commented 2 years ago

Не знаю имеет ли это смысл. Чтобы это реализовать гибко технических должен быть отдельный модуль Storage, от которого зависит Core. И этот Storage будет реализовать интерфейс отвечающие за персистентное хранилище.

И уже этот Storage реализовать как SQL (MySQL/SQLite), либо API (restful/любое другое). Но это будет сложно для конечного пользователя. Та и проблемы с базой не настолько критические и частые чтобы уделять этому столько времени

TiBarification commented 2 years ago

Do I understand correctly that we are burying SQLite usage?

Yes

TiBarification commented 2 years ago

Та и проблемы с базой не настолько критические

Like server crash when database connection goes by timeout?